atoms
Icon
A decorative icon from a small registry of SVG paths and arrows, sized by name and coloured with the current text colour.
Specimens
{{ Icon.render({
name: "chevron-right",
size: "lg",
classes: "text-primary-400"
}) }}{{ Icon.render({ name: "external-link", size: "xl" }) }}{{ Icon.render({
name: "arrow-right",
size: "2xl",
classes: "text-neutral-100"
}) }}?
{{ Icon.render({ name: "not-an-icon" }) }}Params
| Param | Type | Description |
|---|---|---|
name | string | Key in the svg or unicode registry. Includes chevron-left/chevron-right and grid (Material “grid_view”, added 2026-10-02 for the pager’s “All” link). |
size | string | xs…2xl (sets w-*/h-*). Use this for size rather than passing w-*/h-* in classes: both would set the same properties, and the winner would depend on CSS order. |
classes | string | variant map | array | String, variant map, or array (applied through | classes). |
Notes
Sizes are xs, sm, md, lg, xl, and 2xl. Icons are aria-hidden, so pair them with visible text or an aria-label on the parent.