REFERENCEAPI & CSS Variables
Complete reference for React props, Web Component attributes, and CSS custom properties.
Props & Attributes
| Name | Values | Default |
|---|
variant | stroke | duotone | solid | stroke |
animation | auto | none | draw | pulse | heartbeat | bounce | spin | shake | wobble | swing | float | tada | ping | flip | morph-pop | glow | auto |
trigger | hover | loop | mount | hover |
size | number | CSS length | 24 |
color | any CSS color | currentColor |
strokeWidth | number | 1.5 |
duration | seconds | 1 |
delay | seconds | 0 |
title / label | accessible name (omit for decorative icons) | - |
CSS Custom Properties
| Variable | Description |
|---|
--ai-size | Icon width and height (default: 24px) |
--ai-color | Primary icon color (default: inherit) |
--ai-stroke-width | Stroke thickness for stroke/duotone icons (default: 1.5) |
--ai-duration | Animation duration (default: 1s) |
--ai-delay | Animation delay (default: 0s) |
--ai-ease | Animation timing function (default: ease-in-out) |
--ai-secondary-opacity | Opacity of the secondary layer in duotone icons (default: 0.4) |