Skip to content
Zuno UI
Explore components
EXPLORE
Actions
Forms
Layout
Navigation
Data display
Feedback
Overlays
RESOURCES

Empty

Absence of data, context and the next action when there is one.

No projects yet

Create your first project to start collaborating with your team.

Installation

Run it from the root of a project already set up with zunoui init.

npx zunoui@latest add empty

Dependencies

What add empty installs alongside the component. The CLI skips any you already have in a compatible version.

ZUNO registry

  • @zuno/utils

Examples

1 examples · 1 component
empty

No projects yet

Create your first project to start collaborating with your team.

Empty state with an action

Context and a next step for the user.

API reference

Forwards props and ref to the container element; it only adds composition utilities.

PropTypeDefault
Empty

Centered container with a dashed border.

div—
EmptyMedia

Icon or media for the state.

div—
EmptyTitle

Short title for the state.

h3—
EmptyDescription

Explanation and context.

p—
EmptyActions

Suggested actions.

div—

States

The states that apply to this component and their visual treatment.

StateTreatment
Zero resultsThe text clarifies that a search or filter returned no data.
No data yetThe text indicates that no content has been created yet.
With actionEmptyActions offers the next step when there is one.

Accessibility

Distinguish "zero results" from "no data yet"; the text should make it clear.

Offer the next action when there is one; never leave the user at a dead end.