shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Empty without Icon Empty State for React
A text-only empty state with a title and a description and no icon.
Not every empty state needs a picture. This one is a title and a description in EmptyHeader, with no EmptyMedia. Use it in compact panels or text-heavy layouts where an icon would add noise.
Preview
Installation
FAQ
Which parts does the text-only empty state use?
EmptyHeader with EmptyTitle "No content available" and EmptyDescription "There's nothing to display at the moment. Please check back later." There is no EmptyMedia.
How do I add an icon later?
Put EmptyMedia first inside EmptyHeader, with variant="icon" and an icon. This file leaves that part out, so the header is the two text lines.
How do the title and description differ?
EmptyTitle uses the heading font. EmptyDescription is muted. Both are centered, and the header caps the line length at max-w-sm.
Is there a button?
No. There is no EmptyContent. Add one after the header when the state needs an action.
Related
- Simple Empty StateA minimal empty state with a file
- Empty with Description Empty StateAn empty state with an inbox icon, a
- No Notifications Empty StateAn empty notifications list with a bell
- Standard with Title AlertA neutral alert with only a title, for a
- Standard CardA basic card with a title, a description
- Badge with Text (Standard)A default badge with a short label for a