shadcn.io is an independent project built on shadcn/ui
A star icon, the title No favorites yet, and a description that favorites will show up here. The sentence ends with Learn more about favorites.
Use it when the extra help is optional and does not deserve a button. If marking a favorite is the next step, put that on a Button. In Vue, Ark UI does not mark favorites.
Installation
Anatomy

Usage
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon"><StarIcon aria-hidden="true" /></EmptyMedia>
<EmptyTitle>No favorites yet</EmptyTitle>
<EmptyDescription>
Items you mark as favorites will appear here.{{ " " }}<a href="#">Learn more about favorites</a>
</EmptyDescription>
</EmptyHeader>
</Empty>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.
API Reference
Empty
Sets variant="icon". The rest is on the Empty page.





