Empty State
The "nothing here yet" panel for an empty list, inbox, search or project. It's a real <section> labelled by its own heading through aria-labelledby, and the heading is a real <h1>–<h6> picked withheadingLevel, so someone moving through the page by heading or landmark lands on it and hears what's missing.
No conversations yet
Start a chat and it will show up here, with its files and tool runs.
Shape
It's a container: --kernel-radius-container paired with--kernel-padding-container-curve, plus extra block padding added on top of the curve padding rather than in place of it, so the content sits calmly in the middle and still clears the corners at Round.
Examples
Minimal
Just a heading and a sentence.
No files
Drop files here to add them.
Usage
<EmptyState title="No files" description="Drop files here to add them." />Plain
No outline, for a surface that already has its own edge.
Nothing scheduled
Usage
<Card>
<EmptyState variant="plain" headingLevel={2} title="Nothing scheduled" />
</Card>Playground
Toggle every adjustable prop and watch the component — and the code — update live.
No results
Try a different search, or clear the filters.
Usage
<EmptyState
title="No results"
description="Try a different search, or clear the filters."
icon={<SearchIcon />}
actions={<Button>Clear filters</Button>}
/><kernel-empty-state heading="No results" description="Try a different search, or clear the filters.">
<svg slot="icon" …></svg>
<kernel-button slot="actions">Clear filters</kernel-button>
</kernel-empty-state>Props
| Prop | Type | Default |
|---|---|---|
title | ReactNode (required) | — |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | 3 |
description | ReactNode | — |
icon | ReactNode | — |
actions | ReactNode | — |
variant | "dashed" | "plain" | "dashed" |
children | ReactNode (between description and actions) | — |
The custom element uses a heading attribute rather thantitle, which every element already has as its native hover tooltip, and takes slot="icon",slot="heading", slot="description" andslot="actions" children.
Accessibility
- The section's accessible name is its heading, and its description is the description text.
- The icon is
aria-hidden: the heading already says what it means. - Pick
headingLevelto fit the page outline, rather than for its size; the size stays the same.