Icon
Primitivesatlas-iconExamples
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.
API
Generated from the library source, so it always matches the code.
AtlasIconComponent atlas-icon
| Input | Type | Default | Description |
|---|---|---|---|
| name | string | — | |
| size | 'sm' | 'md' | 'lg' | 'xl' | number | 'md' | |
| class | string | '' | |
| ariaLabel | string | — | |
| stroke | string | — | #111 , red , var(--primary) ). Also sets color , so icons that use stroke="currentColor" follow it. Overrides the icon's own stroke . |
| fill | string | — | fill . |
| strokeWidth | number | string | — | |
| strokeLinecap | AtlasIconStrokeLinecap | — | |
| strokeLinejoin | AtlasIconStrokeLinejoin | — | |
| strokeDasharray | number | string | — | "4 2" ). |
| opacity | number | string | — |
Types
AtlasIconStrokeLinecap
type AtlasIconStrokeLinecap = 'butt' | 'round' | 'square'AtlasIconStrokeLinejoin
type AtlasIconStrokeLinejoin = 'miter' | 'round' | 'bevel'