shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Empty with Long Description Empty State for React
An empty product list with a package icon and a two-sentence description.
An empty state that explains itself. A package icon and the title No products available sit above a two-sentence description: the category is empty, so check back or browse others. Use it when the reader needs the why as well as the what.
Preview
Installation
FAQ
How is the long description written?
One EmptyDescription holds two sentences: there are no products in this category yet, then check back later or browse other categories. There is no br between them.
Which icon does it use?
PackageIcon in EmptyMedia with variant="icon". The title is "No products available".
Does the longer text stay readable?
EmptyHeader limits the block to max-w-sm and centers it. EmptyDescription is muted.
How do I put the sentences on separate lines?
Add a br inside the same EmptyDescription. This demo leaves both sentences in one paragraph.
Related
- Empty with Description Empty StateAn empty state with an inbox icon, a
- Empty with Multiple Paragraphs Empty StateAn empty calendar whose description is
- Try Different Keywords Empty StateAn empty search state with a larger
- Empty with Link Action Empty StateAn empty state with a book icon and a
- Standard CardA basic card with a title, a description
- Info with Title AlertAn info alert with only a title, for a