byronwade/ui
Application UI

Patterns · Application UI

Empty State

A centered empty-state panel with a dashed border, optional icon chip, title, description, and an optional action slot.

Feature showcase

Installation

Features

  • 7 examples

    Default, Compact, Error State, Minimal, No Icon, Search No Results, With Multiple Actions.

API

Props

PropTypeDefaultDescription
titlestring-Primary heading text displayed in the empty state.
iconIconundefinedOptional Phosphor icon component rendered in a small rounded chip above the title.
descriptionstringundefinedOptional muted helper text rendered below the title.
actionReact.ReactNodeundefinedOptional action element (e.g. a button) rendered below the description.
classNamestringundefinedAdditional class names merged onto the root container.

Source and related

FilePath
Componentregistry/components/empty-state.tsx
Default examplecontent/examples/empty-state/default.tsx
Compact examplecontent/examples/empty-state/compact.tsx
Error State examplecontent/examples/empty-state/error-state.tsx
Minimal examplecontent/examples/empty-state/minimal.tsx
No Icon examplecontent/examples/empty-state/no-icon.tsx
Search No Results examplecontent/examples/empty-state/search-no-results.tsx
With Multiple Actions examplecontent/examples/empty-state/with-multiple-actions.tsx