shadcn.io is not affiliated with official shadcn/ui
Sheet examples · Navigation
Navigation with User Profile Sheet for React
A left-side menu sheet with the signed-in user's initials, name and email above four links.
A left-side menu that starts with who's signed in: an Avatar with initials, the name and the email on a muted card, then Dashboard, Projects, Settings and Sign Out. People confirm the account before they navigate or sign out.
Preview
Installation
FAQ
How is the profile card built?
A muted, rounded row with an Avatar showing JD in its AvatarFallback, the name John Doe and the email john@example.com. Add an AvatarImage to show a photo.
Which links does the menu have?
Dashboard, Projects, Settings and Sign Out, as a elements in a nav, mapped from a static list.
Should Sign Out be a link?
Only if your sign-out is a page. If it calls an API, make it a button so it isn't opened in a new tab or prefetched, and send people to the sign-in page afterwards.
Does the sheet close when a link is clicked?
Links in a sheet don't close it. When a link changes the page, close the sheet in its click handler, or let your router's navigation unmount it. To close it from code, control the open state:
Pass open to Sheet; onOpenChange receives the next boolean.
Related
- Mobile Menu SheetA left-side menu sheet with four page
- Sidebar Navigation SheetA left-side navigation sheet with
- Avatar StandardA round avatar with a profile picture and
- Navigation with Search SheetA left-side menu sheet with a search
- Nested Navigation Menu SheetA left-side menu sheet with Products and
- Article Preview SheetA right-side sheet previewing an article