LanternUI.Components.EmptyState (LanternUI v0.8.2)

Copy Markdown View Source

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

<.empty_state icon="folder-open" title="No objects">
  Drop files here or
  <:action><.button size="sm" phx-click="upload">Upload</.button></:action>
</.empty_state>

Summary

Functions

empty_state(assigns)

Attributes

  • icon (:string) - Optional leading icon name from the icon set. Defaults to nil.
  • title (:string) (required) - Primary empty-state heading.
  • class (:any) - Extra classes merged onto the root element. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

Slots

  • inner_block - Supporting description under the title.
  • action - CTA buttons or links below the description.