User menu
The signed-in person behind their avatar, with their account, their workspaces, the theme and Sign out. A menu that opens as a bottom sheet on a phone.
npx shadcn add https://kinoui.com/r/user-menu.jsonCopy install command
Examples
Default
Who is signed in, their pages, their workspaces, the theme and Sign out, every choice one press away. A workspace pick closes the menu, since the page changes.
Sidebar
The person signed in at a sidebar’s foot, as a row with their name and email, the menu opening above it.
Submenus
The workspace and the theme each in a submenu, the workspace row naming the one they’re in. On a phone their rows sit in place under their names.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/user-menu.json- Files
lib/reduce-motion.tslib/scroll.tscomponents/kino/separator.tsxlib/popup.tslib/resize.tslib/run-progress.tslib/highlight.tslib/menu.tsxlib/controllable.tslib/grip.tslib/panel.tsxlib/refs.tslib/swap.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxcomponents/kino/sheet.tsxcomponents/kino/drawer.tsxlib/roomy.tslib/menu-sheet.tsxcomponents/kino/dropdown-menu.tsxcomponents/kino/preferences.tsxlib/pill.tscomponents/kino/segmented-control.tsxlib/glide.tsxcomponents/kino/tooltip.tsxcomponents/kino/theme-switcher.tsxcomponents/kino/user-menu.tsx- Packages
@base-ui/reactclass-variance-authority
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
UserMenu
UserMenuContent
UserMenuHeader
UserMenuWorkspaces
UserMenuWorkspace
UserMenuTheme
UserMenuSubTrigger
Data attributes
CSS variables
Accessibility
- The menu follows the menu button pattern: Up and Down move through every row, Left and Right also move along the theme’s icons, and Escape closes it and returns focus to the trigger.
- The header is a group named by the person’s name, so it is read when the menu opens.
- Each theme icon is a radio item with its name, such as “Dark”.
- On a phone the sheet is a dialog named by
title: Tab moves through its rows, a swipe down or Escape closes it, and focus returns to the trigger. - Name an avatar trigger with text inside it, not
aria-label: an avatar without a photo shows initials, and a name that doesn’t hold what it shows fails voice control.