Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erbridge/svelte-feather

Feather icons as Svelte components
https://github.com/erbridge/svelte-feather

Last synced: 12 days ago
JSON representation

Feather icons as Svelte components

Awesome Lists containing this project

README

        

# @erbridge/svelte-feather

[Feather icons](https://feathericons.com/) as Svelte components.

## Installation

```sh
npm install @erbridge/svelte-feather
```

## Usage

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

```svelte

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

```

To override the root `` node's attributes, pass them in as props:

```svelte

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

```

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

```svelte

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

```

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