shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Actions
Empty with Link Action Empty State for React
An empty state with a book icon and a Read the documentation link with an external-link icon.
Sometimes the next step is reading, not creating. Under a book icon, a title and a description, the action is a link-styled Button that renders a link to the documentation, with an external-link icon after the label. Use it on getting-started screens and features that need a short read first.
Preview
Installation
FAQ
Is Read the documentation a link?
Yes. It's a link styled by Button with variant="link", so it navigates like any anchor and opens in a new tab on middle-click.
render with an a element makes the button render a link, and nativeButton is false because the element isn't a button.
Where does the external icon sit?
After the label, with data-icon="inline-end". The button's own gap separates the words and the icon, and sizes the icon for you.
What is in the header?
BookOpenIcon in EmptyMedia with variant="icon", the title "Get started with our guide", and a description about setting up the first project.
Where does the link sit?
In EmptyContent, after EmptyHeader. The content is a centered column, so the link sits under the description.
Related
- Empty with Single Action Empty StateAn empty projects state with a plus icon
- Empty with Input Action Empty StateAn empty state with a newsletter signup
- No Notifications Empty StateAn empty notifications list with a bell
- Button with Text (Link)Underline on hover, no fill
- Button with Text (Standard)The one filled action
- Standard CardA basic card with a title, a description