shadcn.io is not affiliated with official shadcn/ui
Dropdown Menu examples · Profile
Profile Dropdown with Status Dropdown Menu for React
A profile menu whose avatar shows an online dot, with a large avatar, the email and a Pro badge in the header.
A status dot tells people you're around before they message you. This dropdown menu opens from a round avatar button with an online dot, and its header shows a larger avatar, the name, the email and a Pro Badge. View Profile, Billing and Account Settings follow, then a destructive Log out. It fits chat, collaboration and community apps.
Preview
Installation
FAQ
How is the online dot drawn?
An AvatarBadge with bg-success inside the trigger's Avatar, which places it at the bottom end corner. Change the class for away or busy, and say the status in text too, such as in the button's aria-label, since a color alone isn't announced.
What is in the menu header?
A DropdownMenuLabel with font-normal: a size-12 avatar next to the name, shadcn, the email, m@example.com, and a secondary Badge that reads Pro. It labels the first DropdownMenuGroup and can't be focused.
What if the photo fails?
AvatarFallback shows CN in both avatars, and the online dot stays on the trigger's avatar.
Which commands are under the header?
View Profile, Billing and Account Settings, each after an aria-hidden icon, then a separator and Log out with variant="destructive". The menu is w-64 and lines up with the end of the button.
Related
- Profile Dropdown with Avatar Dropdown MenuA profile menu opened from a round avatar
- Account Settings Dropdown Dropdown MenuAn account menu opened from the user's
- Multi-Account Switcher Dropdown MenuAn account switcher whose button shows
- Badge with Text (Standard)A default badge with a short label for a
- Avatar StandardA round avatar with a profile picture and
- Button with Text (Standard)The one filled action