LanternUI.Components.Icon (LanternUI v0.3.2)

Copy Markdown View Source

A small, curated inline-SVG icon set (Heroicons outline paths, MIT).

Self-contained by design: no icon font, no Tailwind plugin, no host asset pipeline — the SVG ships in the HTML, sized in em so it scales with text and colored via currentColor.

<.icon name="chevron-down" />
<.icon name="calendar-days" class="lui-mr-1" />

The set is deliberately minimal: what LanternUI's own components need plus the everyday few. It is not a general icon system — for that, use your host's icon setup.

Summary

Functions

Renders an icon by name. Available: arrow-right, calendar-days, check, chevron-down, chevron-left, chevron-right, chevron-up, clock, ellipsis-horizontal, exclamation-circle, magnifying-glass, minus, plus, x-mark.

Functions

icon(assigns)

Renders an icon by name. Available: arrow-right, calendar-days, check, chevron-down, chevron-left, chevron-right, chevron-up, clock, ellipsis-horizontal, exclamation-circle, magnifying-glass, minus, plus, x-mark.

Attributes

  • name (:string) (required) - Must be one of "arrow-right", "calendar-days", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "clock", "ellipsis-horizontal", "exclamation-circle", "magnifying-glass", "minus", "plus", or "x-mark".
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.