User Menu

Opens account actions for the signed-in user.

Installation

pnpm dlx shadcn@latest add @paneui/user-menu

Usage

Examples

Compact

In a sidebar

Put it in SidebarFooter; collapsed shows only the avatar in the icon rail. The menu opens upward by default (side="top").

API Reference

Built on the Menu primitive. Only the props this library adds or changes are listed; everything else passes through.

UserMenu

Also accepts every prop of Menu.Trigger.

name*
string
Shown and used for initials.
email
string
Second line and the menu's first label.
image
string
Avatar photo URL.
collapsed= false
boolean
Avatar only.
variant= "row"
"row" | "compact"
Full row or avatar button.
side / align= "top" / "start"
Menu side / align
Menu position.
PropTypeDefaultDescription
name*string—Shown and used for initials.
emailstring—Second line and the menu's first label.
imagestring—Avatar photo URL.
collapsedbooleanfalseAvatar only.
variant"row" | "compact""row"Full row or avatar button.
side / alignMenu side / align"top" / "start"Menu position.