shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Actions
Empty with Stacked Actions Empty State for React
An empty team state with full-width Invite Team Member and Import from CSV buttons, one above the other.
Two actions with equal weight, one above the other. Under a people icon, the title No team members yet and a description, EmptyContent holds two full-width buttons: Invite Team Member and an outline Import from CSV. Use it in narrow panels and on small screens where a row of buttons would wrap.
Preview
Installation
FAQ
How do the buttons stack?
They are direct children of EmptyContent, which is a column. Each Button has className="w-full", so both stretch to the content width.
Which button is filled?
Invite Team Member has no variant and includes UserPlusIcon. Import from CSV sets variant="outline" and includes UploadIcon. Invite is first.
What separates the two buttons?
EmptyContent is a column with a gap, so the buttons separate without a margin class of their own. The header icon is UsersIcon in EmptyMedia with variant="icon".
What does the empty team say?
EmptyTitle is "No team members yet". EmptyDescription says to invite team members to collaborate on projects.
Related
- Empty with Single Action Empty StateAn empty projects state with a plus icon
- Empty with Multiple Actions Empty StateAn empty upload state with Upload File
- No Messages Empty StateAn empty inbox with a message icon and a
- Button with Text (Standard)The one filled action
- Standard DialogA share dialog with a read-only link, a
- Empty with Input Action Empty StateAn empty state with a newsletter signup