shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Empty with Description Empty State for React
An empty state with an inbox icon, a title, and a one-sentence description.
The basic empty state: an inbox icon in the icon tile, a title, and one sentence that says what to do. EmptyHeader stacks the three and centers them. Start here and add an action when the reader can fix the emptiness in one step.
Preview
Installation
FAQ
Which parts does this empty state use?
EmptyHeader only. EmptyMedia with variant="icon" holds InboxIcon, EmptyTitle is "Nothing here yet", and EmptyDescription is "Get started by creating your first item."
How long is the description?
One sentence, in EmptyDescription, which is muted. There is no second paragraph and no EmptyContent.
How do I change the inbox icon?
Replace InboxIcon inside EmptyMedia. Keep variant="icon" for the same tile.
How do I add a button under the sentence?
Add EmptyContent after EmptyHeader and put a Button in it. This demo stops at the description.
Related
- Simple Empty StateA minimal empty state with a file
- Empty with Long Description Empty StateAn empty product list with a package icon
- Empty with Single Action Empty StateAn empty projects state with a plus icon
- No Messages Empty StateAn empty inbox with a message icon and a
- Standard CardA basic card with a title, a description
- Info with Title AlertAn info alert with only a title, for a