Search nx-ui
Jump to any foundation, component, block or example.
User Menu
An account menu with an online avatar card, searchable organisation switching, theme choices and sign-out — shown in the app shell footer.
bunx shadcn@latest add @nx-ui/user-menuCompact header
The same account menu with an avatar trigger and downward placement for app headers.
Choose an action to try this example.
Basic usage
A compact account card trigger that opens a header, a theme toggle, and a sign-out action.
Many organisations
Browse 17 organisations with your current one first, or search by name and role. Switch organisation, or try creating one in this local example. My account opens the matching account portal.
Active organisation: Nexus ReGen
Create the first organisation
The create action remains available when the user has no organisations yet.
Active organisation:
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.
API reference
Exported parts and their props, extracted from the component source.