@heroicons-animated/svelte
v1.2.3
Published
Animated Heroicons for Svelte, built with CSS animations
Maintainers
Readme
@heroicons-animated/svelte
Beautifully animated Heroicons for Svelte, built with CSS animations.
Installation
npm install @heroicons-animated/svelte
# or
pnpm add @heroicons-animated/svelteUsage
<script>
import { Beaker } from '@heroicons-animated/svelte'
</script>
<Beaker size={28} color="currentColor" strokeWidth={1.5} class="size-6" />Props
| Prop | Type | Default | Description |
| ------------- | ------- | -------------- | ------------------------------- |
| size | number | 28 | Icon size in pixels |
| color | string | 'currentColor' | Stroke color (CSS color value) |
| strokeWidth | number | 1.5 | SVG stroke width |
| class | string | — | Optional additional CSS classes |
| animate | boolean | false | Controls icon animation state |
Import Strategy
Both import styles are supported and tree-shakable in modern bundlers.
Root named imports:
<script>
import { Beaker, RocketLaunch } from '@heroicons-animated/svelte'
</script>Deep per-icon imports:
<script>
import Beaker from '@heroicons-animated/svelte/beaker'
</script>Requirements
- Svelte 5.0+
Documentation
Visit svelte.heroicons-animated.com for the full documentation and icon gallery.
