Skip to content

Empty state

Shows why a view is empty and what to do next.

No saved components

Browse the catalog to find a component to use in your app.

empty-state-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Composition

  • EmptyState
    • EmptyStateIconOptional
    • EmptyStateTitle
    • EmptyStateDescription
    • EmptyStateActionsOptional

Without an action

No saved items

Items you save appear here.

empty-state-no-action-demo.tsx

No search results

After the clear action, move focus back to the search field. Also install Search field and Button.

No projects found

No project name contains “Zephyr”.

empty-state-search-demo.tsx

API reference

EmptyStateTitle

as: "h2" | "h3" | "h4" = "h3"
Heading level for the empty state title.