Skip to content
Calm motion: animations on this site only fade, with no movement

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.

Basic
No episodes yet

New episodes appear here after broadcast.

No episodes match “eriri ep.13”

Usage ​

ts
import { BlessEmpty } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
titlestring—
descriptionstring—
variant"outline" | "plain""outline"framed (default) or plain, for inside a table or list

Slots

NameScopeDescription
icon—
title—
description—
default—

Released under the MIT License. Character names and artwork belong to their owners.