Empty
Empty state
What a list, table, or page shows when there is nothing in it, and, more usefully, what to do about that. There are three cases. Nothing yet is the first run: say what will appear here and give the one action that makes it appear. No results means a search or filter matched nothing: offer to clear it. Failed to load is not empty. It is an error, so use Alert with a retry.
The title says what is empty. The description says what happens next. The default slot holds the action or two. #icon takes a glyph or an SVG on a small plate. variant="plain" drops the frame and halves the padding for use inside a table body or a list. The Page states block shows the three cases side by side.
A no results state appears while someone is typing, so a screen reader user will not notice it by itself: put the result count in a role="status" region next to the search field ("0 results") rather than making the empty state a live region.
New episodes appear here after broadcast.
Usage
import { BlessEmpty } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
title | string | — | |
description | string | — | |
variant | "outline" | "plain" | "outline" | framed (default) or plain, for inside a table or list |
Slots
| Name | Scope | Description |
|---|---|---|
icon | — | |
title | — | |
description | — | |
default | — |