docs
REFERENCE

API & CSS Variables

Complete reference for React props, Web Component attributes, and CSS custom properties.

Props & Attributes

NameValuesDefault
variantstroke | duotone | solidstroke
animationauto | none | draw | pulse | heartbeat | bounce | spin | shake | wobble | swing | float | tada | ping | flip | morph-pop | glowauto
triggerhover | loop | mounthover
sizenumber | CSS length24
colorany CSS colorcurrentColor
strokeWidthnumber1.5
durationseconds1
delayseconds0
title / labelaccessible name (omit for decorative icons)-

CSS Custom Properties

VariableDescription
--ai-sizeIcon width and height (default: 24px)
--ai-colorPrimary icon color (default: inherit)
--ai-stroke-widthStroke thickness for stroke/duotone icons (default: 1.5)
--ai-durationAnimation duration (default: 1s)
--ai-delayAnimation delay (default: 0s)
--ai-easeAnimation timing function (default: ease-in-out)
--ai-secondary-opacityOpacity of the secondary layer in duotone icons (default: 0.4)