Empty state
LesliView::Elements::Empty renders a consistent no-content state with optional explanation and actions.
<%= render LesliView::Elements::Empty.new(
text: "No tickets yet",
description: "Create the first ticket to begin tracking work."
) do %>
<%= render LesliView::Elements::Button.new("Create ticket", url: new_ticket_path) %>
<% end %>
text: defaults to No data found; set it to nil for illustration-only contexts. description: and the action block are optional. Keep the text specific to the missing resource and make the block action the natural next step.
Last Update: 2026/10/06