Atelier UI

Search components…

Search components…

User Menu

An avatar-triggered account menu with a profile header, links, a theme toggle and sign out.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

UserMenuProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
user* required{ name: string; email: string; initials?: string }——
links* requiredUserMenuLink[]——
themeUserMenuTheme—Controlled theme
defaultThemeUserMenuTheme"system"—
onThemeChange(theme: UserMenuTheme) => void——
onSignOut() => void——
align"start" | "end""end"—
defaultOpenbooleanfalseRender the menu open on mount (without moving focus)

Install

$ npx shadcn@latest add https://chromotion.dev/r/user-menu.json

More like this