Icon
atomsOpen icon atom: a curated set of named lucide glyphs sized at 1em, plus a children snippet for any raw SVG path; tone, size, spin and filled.
Icons beside text
no size, so each glyph tracks the text it sits in; tone colours it; label exposes a standalone icon to assistive tech.
Attachments 5 files
screenshot-2026-09-25-at-14.02.11.png
1254 KB quarterly-report.pdf
86.1 KB meeting-notes.md
2.0 KB export.csv
392.7 KB demo-reel.mp4
47168 KB Files over 25 MB are shared as links.
Size, tone, filled and spin
size in px or 1em by default; tone uses the semantic palette; filled forces the solid form; spin rotates (halts under reduced motion).
text-sized
Any SVG via children
pass raw 24×24 path data as children to render an icon outside the registry, for example a lucide-svelte component body.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | IconName | — | Named glyph from the registry. Omit when supplying `children`. |
size | number | — | Explicit pixel size. Omit to track the surrounding text (1em) — best for icons sitting inline with a label. |
label | string | — | When set, the icon is exposed to AT with this label; otherwise it is decorative (aria-hidden) and the parent control carries the label. |
spin | boolean | false | Continuously rotate the glyph (e.g. `name="loader"` as a spinner). The global prefers-reduced-motion rule halts it for motion-sensitive users. |
filled | boolean | — | Force fill (or outline) regardless of the glyph's default. |
tone | Tone | — | Semantic colour. |
children | Snippet | — | Raw SVG markup (24×24 viewBox) — overrides `name`. Pass a lucide-svelte component's contents here to render any icon not in the registry. |
class | string | '' | |
style | string | '' |