shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Empty with Link in Description Empty State for React
An empty favorites state with a Learn more link inside its description.
An empty state with help built into the sentence. The description says favorites will appear here, then links to Learn more about favorites; EmptyDescription underlines a link inside it. Use it when the extra information is optional and doesn't deserve a button.
Preview
Installation
FAQ
Where is the Learn more link?
Inside EmptyDescription, after the sentence about favorites. The anchor's text is "Learn more about favorites" and its href is #.
How is that anchor styled?
EmptyDescription underlines its direct anchors and offsets the underline. On hover the link uses the primary color. The anchor in this file has no class of its own.
What icon is above the title?
StarIcon in EmptyMedia with variant="icon". EmptyTitle is "No favorites yet".
Does the link leave the page?
href="#" stays on this page. Point it at the favorites docs. The anchor has no target.
Related
- Empty with Description Empty StateAn empty state with an inbox icon, a
- Empty with Link Action Empty StateAn empty state with a book icon and a
- No Notifications Empty StateAn empty notifications list with a bell
- Button with Text (Link)Underline on hover, no fill
- Standard CardA basic card with a title, a description
- Info with Title AlertAn info alert with only a title, for a