@svelte-parts/icons

0.0.24 • Public • Published

@svelte-parts/icons

Icon components for svelte.

Demo and list of all available icons

Try it out in the svelte REPL

Collections:

Install

npm install @svelte-parts/icons

Usage

<script>
  import ActivityIcon from '@svelte-parts/icons/feather/activity'
  import AerialwayIcon from '@svelte-parts/icons/maki/aerialway'
  import AlertIcon from '@svelte-parts/icons/octicons/alert'
</script>

<h1>Inlined <ActivityIcon /> icons</h1>
<p> That keep the same size <AerialwayIcon /> as the text</p>
<button>Even here <AlertIcon /> in a button </button>

If you want to make it fit the container like SVG, set inline to false

<div style="width:500px">
  <Icon inline={false}>
</div>

Package Sidebar

Install

npm i @svelte-parts/icons

Weekly Downloads

9

Version

0.0.24

License

MIT

Unpacked Size

563 kB

Total Files

1468

Last publish

Collaborators

  • idris-maps