shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Search
No Matches Found Empty State for React
An empty state for a search with no matches that quotes the query and offers a View All Items button.
A search that found nothing, with a way back to everything. The title repeats the query, the description suggests checking the spelling, and a ghost View All Items button drops the search. Use it for scoped searches where an unfiltered list is a useful fallback.
Preview
Installation
FAQ
Is the word query the visitor's search?
In this file it is literal text. EmptyTitle renders No matches found for "query", quotes included. Replace query with the string that was searched.
What does the description suggest?
EmptyDescription says to check spelling or search for something else. It is one sentence, with no link.
What variant is View All Items?
variant="ghost" on the Button in EmptyContent. There is no click handler on it here.
Related
- No Search Results Empty StateAn empty state for a search with no
- Clear Filters Suggestion Empty StateAn empty state for a filter combination
- No Filter Results Empty StateAn empty state for filters that match
- Button with Text (Standard)The one filled action
- Input with LabelA text input with a label above it
- No Files Empty StateAn empty folder with a file icon and