This project is still in experimental development. Expect bugs and breaking changes!
npm install @steeze-ui/svelte-iconThis project is still in experimental development. Expect bugs and breaking changes!
Effortless Svelte Icon Component
- Made for SvelteKit & Vite environments
- Usable with all official Icon Packs
- Dynamically change theme on runtime
``bash`
npm i @steeze-ui/svelte-icon
`svelte
`
| Attribute | Default | Description |
| --------- | ------- | ---------------------------------------------------------------------- |
| src | - | (required) The source of a icon coming from an Icon Pack |
| theme | default | Configures to use a Icon Theme if available (otherwise render nothing) |
| size | 100% | Configures width and height |
| \* | - | Any html attribute that is valid (e.g aria-hidden, class or style) |
For all available Icon Packs visit steeze-ui/icons
This repo uses pnpm. To build a new version of the package just run:
`bash``
pnpm install && pnpm package