Skip to content

Commit

Permalink
feat: add individual import and add a script to update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Mar 5, 2023
1 parent 292786e commit bc765e2
Show file tree
Hide file tree
Showing 3 changed files with 1,181 additions and 67 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ Use the `size` prop to change the flag sizes.
</div>
```

## Faster compiling

For faster compilation, you can import the icon directly.

```html
<script>
import No from 'svelte-flag-icons/No.svelte'
import Us from 'svelte-flag-icons/Us.svelte'
</script>

<No />
<Us />
```

## CSS frameworks support

You can change size and other CSS using the `class` prop.
Expand Down

0 comments on commit bc765e2

Please sign in to comment.