Simple wrapper component for Feather Icons.
<FeatherIcon icon="feather" />
-
icon
: Feather icon name. What you would put in thedata-feather
attribute. -
attrs
: Attributes you would pass tofeather.replace()
Using with Sapper
Please import svelte-feather-icon/FeatherIcon.html
directly (or configure your bundler to resolve svelte
package fields, rollup-plugin-svelte
does this out of the box, see resolve.mainFields for webpack) and compile it from within your own project.
See svelte#604 for more information.