registry
@automindzsheets 01–77shadcn 4.x
SHEET 16

Empty State

ui / feedback

Empty, no-results and failed-to-load states with actions, in two sizes.

type
ui
files
1
registry deps
none
npm deps
none

installs

  • components/ui/empty-state.tsx
  • Separate empty, no-results and error messages
  • Error variant announces itself with role=alert
  • Compact size fits inside a card or table body

Three variants because they are three different messages: default for nothing created yet, search for filters that matched nothing, error for a load that failed (rendered with role="alert").

Variations

one state per section

01

Nothing created yet

The first-run case: name the thing, say what happens next, give one primary action.

fluid

No projects yet

Projects hold your deployments, members and billing usage.

03

Failed to load

Rendered with role="alert" and destructive tone, because a failed fetch is not an empty list.

fluid
04

Compact

size="sm" for a table body or a card, where the full-height version would push the layout around.

fluid

Recent activity

Nothing in the last 30 days