Icon
Display

Icon.

A consistent lightweight icon component.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

5 props
ParameterTypeRequiredDefaultPossible valuesDescription
nameIconNameYes—Browse /icons for all available aliasesName from the unified Lucide alias registry.
sizenumber | stringNo18—Rendered SVG dimensions.
strokeWidthnumberNo1.8—SVG stroke thickness.
aria-labelstringNo——Provide an accessible name for a meaningful icon.
classNamestringNo——CSS class applied to the SVG.