Getting Started with Svelte
MDI can be used in conjunction with the Svelte Icon Component. See the README in the repo for more usage information.
-
Install from NPM.
npm install @mdi/js @jamescoyle/svelte-icon
-
Import into your project.
<script> import SvgIcon from '@jamescoyle/svelte-icon'; import { mdiAccount } from '@mdi/js'; </script> <SvgIcon type="mdi" path={mdiAccount}></SvgIcon>