{#- chirp-ui: Empty State component Placeholder for empty lists, collections, or search results. Optional illustration slot for custom graphics. Named slot: action (custom CTA when not using action_label/action_href). Usage: from "chirpui/empty.html" import empty_state call empty_state(icon="✧", title="No Projects")

Create your first project to get started.

{% slot action %}btn("New Project", variant="primary"){% end %} end call empty_state(title="No items", action_label="Create", action_href="/new")

Get started by creating your first item.

end call empty_state(title="No results", code="query", search_hint="Try a different search term")

No matches found.

end Docs wave extras: code, suggestions, search_hint (all data-in). -#} {% def empty_state(icon=none, title="No items", illustration=none, action_label=none, action_href=none, code=none, suggestions=none, search_hint=none, cls="") %}
{% if illustration %}
{{ illustration }}
{% elif icon %}
{{ icon }}
{% end %}

{{ title }}

{% if code %}
{{ code }}
{% end %}
{% slot %} {% if search_hint %}

{{ search_hint }}

{% end %} {% if suggestions %} {% end %} {% if action_label and action_href %} {{ action_label }} {% else %}
{% slot action %}
{% end %}
{% end %}