shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Simple Empty State for React
A minimal empty state with a file question icon and a title only.
The smallest empty state: a file question icon in the icon tile and the title No items found, with no description and no action. Use it when the context already explains why the list is empty, such as a side panel or a widget.
Preview
Installation
FAQ
What does the simple empty state render?
EmptyHeader with EmptyMedia variant="icon" around FileQuestionMarkIcon, and EmptyTitle "No items found". There is no EmptyDescription and no EmptyContent.
How is the icon sized?
FileQuestionMarkIcon has no size class. variant="icon" draws the tile and sizes that unsized icon. The part sets data-variant="icon".
How do I add a sentence under the title?
Add EmptyDescription after EmptyTitle, still inside EmptyHeader. This demo stops at the title.
Related
- Empty with Description Empty StateAn empty state with an inbox icon, a
- Empty with Link in Description Empty StateAn empty favorites state with a Learn
- No Notifications Empty StateAn empty notifications list with a bell
- Empty with Single Action Empty StateAn empty projects state with a plus icon
- Standard CardA basic card with a title, a description
- Standard with Title AlertA neutral alert with only a title, for a