Icon
atomWrapper that sizes and colours any inline SVG to align with the type scale. Pass your own SVG as children.
Sizes
xs through xl — hover to see the size label.
Coloured
Apply any CSS colour or design-token variable.
Usage
Installation
API Reference
Icon props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Icon dimensions. |
color | string | — | CSS colour value or CSS variable. Defaults to currentColor. |
label | string | — | Accessible label (sets aria-label). If omitted the icon is decorative. |
children* | React.ReactNode | — | An inline SVG element. |