Skip to content

Commit

Permalink
docs: ✏️ add static usage to README
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 14, 2024
1 parent ea54e60 commit dcf347a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

[storybook]: https://streamich.github.io/iconista

React usage

## React usage

```js
import Svg from 'iconista';
Expand All @@ -29,6 +30,30 @@ const url = getUrl({set: 'ibm_16', icon: 'arrow--down'})
```


## Static usage

You can access icons directly from a public CDN, using icon's `{set}` and
`{icon}` identifiers. For example, you can use the JsDelivr CDN:

Using [JsDelivr](https://cdn.jsdelivr.net/npm/iconista@2/sets/lucide/beef.svg):

```
https://cdn.jsdelivr.net/npm/iconista@2/sets/{set}/{icon}.svg
```

Using [UNPKG](https://unpkg.com/iconista@2/sets/lucide/beef.svg):

```
https://unpkg.com/iconista@2/sets/{set}/{icon}.svg
```

Using [ESM.sh](https://esm.sh/iconista@2.18.0/sets/lucide/beef.svg):

```
https://esm.sh/iconista@2/sets/{set}/{icon}.svg
```


## License

- `elastic` icon set is under [Apache License 2.0 by Elastic](https://github.com/elastic/eui/blob/master/LICENSE).
Expand Down

0 comments on commit dcf347a

Please sign in to comment.