Skip to content

Renders SVG icons from a central registry by name.

atlas-icon

Examples

Sizes

Icons render from the registry by name. size takes sm , md , lg or a pixel number.

Color and stroke

Icons inherit currentColor , so text utilities color them. Presentation inputs such as strokeWidth override the SVG attributes.

Accessible label

Decorative icons are hidden from assistive technology. Pass ariaLabel when the icon carries meaning on its own.

Prices include VAT.

API

Generated from the library source, so it always matches the code.

AtlasIconComponent atlas-icon

InputTypeDefaultDescription
name string— Icon name to look up from the registry. When set, renders the registered SVG.
size 'sm' | 'md' | 'lg' | 'xl' | number'md' Size preset or custom pixel value.
class string'' Additional CSS classes.
ariaLabel string— Accessible label. When set, aria-hidden is removed and aria-label is applied.
stroke string— Stroke colour applied to the SVG. Any CSS colour value (e.g. #111 , red , var(--primary) ). Also sets color , so icons that use stroke="currentColor" follow it. Overrides the icon's own stroke .
fill string— Fill colour applied to the SVG. Any CSS colour value. Overrides the icon's own fill .
strokeWidth number | string— Stroke width applied to the SVG. Number (user units) or any CSS length string.
strokeLinecap AtlasIconStrokeLinecap— Stroke line-cap applied to the SVG.
strokeLinejoin AtlasIconStrokeLinejoin— Stroke line-join applied to the SVG.
strokeDasharray number | string— Stroke dash pattern applied to the SVG (e.g. "4 2" ).
opacity number | string— Opacity applied to the whole icon. Number 0–1 or any CSS value.

Types

AtlasIconStrokeLinecap

SVG line-cap presentation values.

type AtlasIconStrokeLinecap = 'butt' | 'round' | 'square'

AtlasIconStrokeLinejoin

SVG line-join presentation values.

type AtlasIconStrokeLinejoin = 'miter' | 'round' | 'bevel'