User Menu

An account menu with theme toggle and sign-out, shown in the app shell.

$bunx shadcn@latest add @nx-ui/user-menu
Registry item

Basic usage

A compact account card trigger that opens a header, a theme toggle, and a sign-out action.

Custom menu items

Pass DropdownMenuItems (and separators) as children to add profile, organisation and billing links above the theme toggle.

Organisation selection

Pass orgs (the Org shape shared with OrgSwitcher) to render an Organisations section inside the menu — a tick marks activeOrgId and switching flows through onOrgChange, mirroring Untitled UI's account-menu switch-account pattern. The trigger's secondary line tracks the active org here.

Active organisation: Nexus ReGen

Secondary label

Override the trigger's second line — useful for showing a role or organisation instead of the email.

Without sign-out

Omit onSignOut to hide the sign-out row entirely — useful for read-only or kiosk contexts where the menu only exposes the theme toggle.

In a sidebar composition

A realistic placement: pinned to the foot of a narrow app-shell sidebar, above the fold.

API reference

Exported parts and their props, extracted from the component source.