Empty

Feedback

What a place shows when it has nothing yet: a list without rows, a search without results, a page the user has no access to. <Empty.Root> centres an Empty.Media (an icon in a tile with variant="icon", or an image; hidden from screen readers), an Empty.Title (a heading, at level 3 by default), an Empty.Description and an Empty.Content with what to do next. Give the root a border (border border-dashed) to mark out an area.

import { Empty } from '@limerdev/zest';
Empty for AI tools (llms.txt)
Use for
An empty table or list, no search results, the first visit to a feature: say what is missing and how to fill it.
Don't
An error the user can fix: use Alert. A place that is still loading: use Skeleton or Spinner, then Empty once you know it's empty.

Examples

No rows

An empty list: an icon in a tile, what is missing, and the action that fills it.

No invoices yet

No results

No search results, in a dashed area: say what was searched and how to widen it.

No customers match “acme ltd”

Props

Every part also takes class (merged over its defaults), ref (bindable: the element), children, and child (a snippet that renders your own element, with props to spread on it).

Empty.Root

No props of its own beyond the common ones.

Empty.Media

Prop Type Default Description
variant "default" | "icon" 'default' icon sets an icon in a tile of the theme's surface; default shows the children (an image, an avatar) as they are.

Empty.Title

Prop Type Default Description
level 1 | 2 | 3 | 4 | 5 | 6 3 The heading level, for the page's outline.

Empty.Description

No props of its own beyond the common ones.

Empty.Content

No props of its own beyond the common ones.