Foundations
Icons
The built-in icon set and how to size and color it.
Inline heroicons (outline), sized by font-size.
Gallery
Pass a heroicon name; the glyph scales with surrounding font-size.
<.icon name="calendar-days" />
<.icon name="magnifying-glass" />
<.icon name="check" />
Every icon
The whole curated set — `Icon.names/0` lists it. Names are validated at compile time.
<.icon :for={name <- LanternUI.Components.Icon.names()} name={name} />
API reference
Props and slots, introspected from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
class |
any |
nil |
Extra classes merged onto the root element. |
name* |
one of 43 values |
— |
Icon key from the curated outline set. |