EmptyState is a headless container for the state shown when a list, table, search or inbox has nothing to display. The consumer supplies the heading, explanation and call to action as children; the component adds only a labelled group when a label is given. It carries no icon and no default text.
Status: beta — implemented and unit-tested in the Svelte canonical; ports to the other frameworks pending (2026-10-05)
Example
No results found
Try a different search or clear your filters.
Show demo markup
<div class="empty-state" role="group" aria-label="No results"><h3>No results found</h3><p>Try a different search or clear your filters.</p><button type="button">Clear filters</button></div>
<EmptyState label="No messages">
<h2>No messages yet</h2>
<p>Messages you receive will appear here.</p>
<button type="button">Write a message</button>
</EmptyState>
Show Svelte source
// In your Svelte component:
import EmptyState from "lily-design-system-svelte-headless/components/EmptyState/EmptyState.svelte";
<EmptyState>
<!-- content -->
</EmptyState>
Usage
<EmptyState label="No messages">
<h2>No messages yet</h2>
<p>Messages you receive will appear here.</p>
<button type="button">Write a message</button>
</EmptyState>
Props
className: string (default: "") -- CSS class name appended to the base class