shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Search
Try Different Keywords Empty State for React
An empty search state with a larger search icon and a longer hint to try other keywords or browse categories.
A search with no results that says more about what to do. The search icon sits straight in EmptyMedia at size-8, larger than an icon tile, and the description runs to two sentences: try other keywords, check the spelling, or browse the categories. Use it where search is the main way in, such as a large catalog or a help center.
Preview
Installation
FAQ
Why is the search icon size-8?
EmptyMedia has no variant, so it does not draw the icon tile. SearchIcon sets size-8 and text-muted-foreground itself.
What does the longer description say?
EmptyTitle is "No results for your search". EmptyDescription is two sentences: try different keywords or check the spelling, then browse categories to find what you need.
Are the categories a link?
No. That sentence is plain text inside EmptyDescription. There is no anchor and no EmptyContent.
What changes if I set variant icon?
variant="icon" draws the icon tile and sizes an unsized glyph. This demo leaves the variant off so size-8 on SearchIcon is the size you see.
Related
- No Search Results Empty StateAn empty state for a search with no
- No Matches Found Empty StateAn empty state for a search with no
- Empty with Long Description Empty StateAn empty product list with a package icon
- Empty Chart Empty StateA chart's empty state with a large bar
- Standard CardA basic card with a title, a description
- Breadcrumb with Ellipsis (Standard)A breadcrumb trail with a text Home link