vikignt / svelte-mui

Simple Svelte 3 UI components
MIT License
318 stars 38 forks source link

Better import for Icon path's #17

Closed manuel3108 closed 4 years ago

manuel3108 commented 4 years ago

I saw that you apparently copy & pasted all your icon's to local files.

A better way of doing this would be to npm i @mdi/js and then do the following:

<Button icon>
    <Icon path={mdiInvertColors} />
</Button>

<script>
    import { mdiInvertColors } from '@mdi/js'
</script>

You can get the Icon names from here materialdesignicons.com

vikignt commented 4 years ago

Thank you, the resource materialdesignicons.com is great, but for this example it's huge. I used my converter from material-design-icons

manuel3108 commented 4 years ago

Ok, I just thought that this might be an easier way to use those icons. But I understand your concerns.