API Reference LanternUI v#0.5.0

Copy Markdown View Source

Modules

LanternUI — a dev-tool-native, open-source component system for Phoenix LiveView.

Native LiveView chart components — server-rendered SVG, minimal JS.

Pure geometry helpers for LanternUI charts: linear scaling, "nice" axis ticks, and SVG path building.

Class-string composition for LanternUI components.

Path breadcrumb for file/tree navigation (a lantern-ui extension — Fluxon has no equivalent).

Buttons — Fluxon-compatible API, shadcn-caliber styling.

A month-grid calendar primitive — the pane the date pickers compose.

Checkbox with label, description, and error states.

Date/time pickers — Fluxon-compatible API composed from LanternUI primitives.

A segmented, directly-editable date/time field — the trigger primitive the date pickers compose (HeroUI-style: 2 / 3 / 2026, 8:45 AM).

Dropdown menu on the shared overlay runtime (anchored placement, focus return, Escape/outside dismissal, arrow-key item navigation).

Quiet empty/zero state for tables, lists, and panels (a lantern-ui extension — Fluxon has no equivalent).

Form chrome — label, error, and a Fluxon-compatible input.

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

App-shell layout — a fixed, collapsible sidebar beside a main column with an optional topbar. The core navigation chrome for a dev-tool or app, and a drop-in-shaped replacement for a Fluxon sidebar layout.

Modal dialog on the shared overlay runtime (focus trap, Escape/outside dismissal, prefers-reduced-motion-aware fade).