@rivo-icons/svelte
v0.0.4
Published
Free, open-source SVG icons for Svelte and SvelteKit — currentColor, TypeScript, tree-shakeable
Maintainers
Readme
@rivo-icons/svelte
Free, open-source SVG icons for Svelte and SvelteKit. 46 hand-crafted icons with
currentColorsupport and TypeScript types.
Install
npm install @rivo-icons/svelte
# or
pnpm add @rivo-icons/svelte
# or
yarn add @rivo-icons/svelteUsage
<script>
import { Setting, Dollar, Clock } from '@rivo-icons/svelte'
</script>
<Setting size={24} />
<Dollar size={32} />
<Clock size={20} color="#6366f1" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number \| string | 24 | Width and height in px |
| color | string | currentColor | SVG stroke / fill color |
| strokeWidth | number \| string | 1.5 | Stroke width (outline icons) |
| class | string | — | CSS class attribute |
Links
License
MIT
