Empty
An empty state: an icon, a title, a line of help and the action that fills the space.
No projects yet
Create a project to start building with your team.
Installation
Or with the shadcn CLI, from the registry:
Usage
Variants
default has no frame, for a page or a panel that already has one; outline draws a dashed border, for drop zones
and empty lists. EmptyMedia variant="icon" puts an icon on a muted tile; default shows the media as given (an
illustration, avatars).
No results
Nothing matches “zzz”. Try fewer words.
Drop files here
PNG, JPG or PDF, up to 10 MB.
Villages
The title is in the village's display face and heading case: capitals in Iwa.
No projects yet
Create a project to start building with your team.
No projects yet
Create a project to start building with your team.
No projects yet
Create a project to start building with your team.
No projects yet
Create a project to start building with your team.
No projects yet
Create a project to start building with your team.
No projects yet
Create a project to start building with your team.
Accessibility
- Plain
<div>s.EmptyTitleis a<div>too: when the empty state stands for a whole page or section, render a heading inside it. - Put the action that fills the space first in
EmptyContent, so keyboard users reach it first.
API reference
Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription and EmptyContent, each a <div> taking its
props and className.
| Component | Prop | Type | Default |
|---|---|---|---|
Empty | variant | "default" | "outline" | "default" |
EmptyMedia | variant | "default" | "icon" | "default" |
emptyVariants and emptyMediaVariants return their classes.