Icon
Thin wrapper around a user-supplied icon component with token-driven size and color.
At a glance
- Icon-library-agnostic — pass any component matching
{ size?: number; color?: string }. - Pair with
SemanticIconsProviderto alias semantic keys (checkmark,close,spinner) to your chosen icons.
Web preview
Native preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | ComponentType<{ size?: number; color?: string }> | — | Icon component reference |
size | 'sm' | 'md' | 'lg' | number | 'md' | Numeric or token size |
color | string | — | Icon color; inherits currentColor when omitted |
label | string | — | Accessible label — required when icon is meaningful |