Getting Started with Svelte

Svelte Icon Component

MDI can be used in conjunction with the Svelte Icon Component. See the README in the repo for more usage information.

Basic Usage

  1. Install from NPM.

    npm install @mdi/js @jamescoyle/svelte-icon
  2. Import into your project.

    <script> import SvgIcon from '@jamescoyle/svelte-icon'; import { mdiAccount } from '@mdi/js'; </script> <SvgIcon type="mdi" path={mdiAccount}></SvgIcon>