shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Actions
Empty with Single Action Empty State for React
An empty projects state with a plus icon and a Create Project button.
The empty state with one clear next step. A plus icon in the icon tile, the title No projects yet, a short description, and a Create Project button in EmptyContent. Use it on any list the reader fills themselves: projects, tasks, documents.
Preview
Installation
FAQ
What is the Create Project button?
A default Button in EmptyContent, with a PlusIcon icon and the label Create Project. Nothing in the file creates a project. Add that on click.
Why does Plus appear twice?
EmptyMedia with variant="icon" holds one PlusIcon, and the button holds another. The tile marks the empty state. The button icon marks the action.
What do the title and description say?
EmptyTitle is "No projects yet". EmptyDescription is "Get started by creating your first project."
Where does the button sit?
EmptyContent follows EmptyHeader. The content is a centered column, so the button is under the description.
Related
- Empty with Multiple Actions Empty StateAn empty upload state with Upload File
- Empty with Stacked Actions Empty StateAn empty team state with full-width
- Empty Table Empty StateAn empty table state with a table icon
- No Messages Empty StateAn empty inbox with a message icon and a
- Button with Text (Standard)The one filled action
- Standard CardA basic card with a title, a description