1.1.2 • Published 4 years ago

mdi-svelte v1.1.2

Weekly downloads
81
License
MIT
Repository
github
Last release
4 years ago

Svelte - Material Design Icons

Using Material Design Icons in your Svelte projects.

npm install mdi-svelte --save-dev

Demo

Go to Demo page.

Usage

The example below uses the @mdi/js package which contains all the MDI icon's path data.

<script>
    import Icon from 'mdi-svelte';
    import { mdiCardsSpade } from '@mdi/js';
</script>

<Icon path={mdiCardsSpade} color="black" />

You can find icons names at materialdesignicons.com

Props

PropPropTypesDefaultDetails
pathstringrequiredSVG path data. Usually from @mdi/js
sizenumber, stringnull{size * 1.5}rem, 1em, 48px
flipbool, stringfalseh - flip horizontal, v - vertical, true - both
rotatenumber0degrees -360 to 360
colorstringcolor of the textrgb() / rgba() / #000
spinbool, numberfalsetrue = 2s, -2 counterclockwise, {spin}s

Inspiration

NPM @MDI Organization @MDI/React module

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago