Feedback
Empty states
What to show when there is nothing yet.
Quiet zero states for tables, lists, and panels — a lantern-ui extension.
With actions
icon, title, body copy, and one or more :action slots.
No objects
Drop files here to upload them, or create a folder to get organized.
<.empty_state icon="folder-open" title="No objects">
Drop files here to upload them, or create a folder to get organized.
<:action><.button size="sm">Upload</.button></:action>
<:action><.button size="sm" variant="ghost">New folder</.button></:action>
</.empty_state>
API reference
Props and slots, introspected from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
class |
any |
nil |
Extra classes merged onto the root element. |
icon |
string |
nil |
Optional leading icon name from the icon set. |
title* |
string |
— |
Primary empty-state heading. |
| Slots | |||
:action |
CTA buttons or links below the description. | ||
:inner_block |
Supporting description under the title. | ||