@erbridge/svelte-feather
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@erbridge/svelte-feather

Feather icons as Svelte components.

Installation

npm install @erbridge/svelte-feather

Usage

The most basic usage is to import the individual components you need:

<script>
  import { X } from "@erbridge/svelte-feather";
</script>

<X />

To override the root <svg> node's attributes, pass them in as props:

<script>
  import { X } from "@erbridge/svelte-feather";
</script>

<X width={36} height={36} />

You can also specify attributes that aren't set on the Feather SVGs by default:

<script>
  import { X } from "@erbridge/svelte-feather";
</script>

<X role="presentation" />

Note that passing a class prop results in the value being added to the default Feather classes, not overriding them.

Readme

Keywords

Package Sidebar

Install

npm i @erbridge/svelte-feather

Weekly Downloads

3

Version

0.1.0

License

SEE LICENSE IN LICENCE

Unpacked Size

2.66 MB

Total Files

580

Last publish

Collaborators

  • erbridge