shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Search
No Filter Results Empty State for React
An empty state for filters that match nothing, with a filter icon and a Clear Filters button.
A filtered list that came back empty, with the one fix most readers want. A filter icon, the title No items match your filters and a short hint sit above an outline Clear Filters button. Use it above a data table, a product grid or any list with filters.
Preview
Installation
FAQ
What does the Clear Filters button use?
A Button with variant="outline" inside EmptyContent. It has no icon and no click handler in this file, so wire the reset yourself.
How is the filter icon shown?
FilterIcon sits in EmptyMedia with variant="icon". The button does not repeat the icon.
What is the message?
EmptyTitle is "No items match your filters". EmptyDescription says to adjust the filters to see more results.
Where do the title and description live?
Both are in EmptyHeader, under the media. EmptyTitle is the short line. EmptyDescription is the muted sentence under it.
Related
- Clear Filters Suggestion Empty StateAn empty state for a filter combination
- No Search Results Empty StateAn empty state for a search with no
- No Matches Found Empty StateAn empty state for a search with no
- Data Table with Column VisibilityA table of orders with a Columns menu
- Button with Text (Standard)The one filled action
- Simple CheckboxA checkbox with a label for a single