<UserButton />
The <UserButton />
component provides an easy-to-use dropdown menu button that displays user account information and session management actions. It includes an avatar, provides quick access to user settings, linked accounts, and session management actions.


Usage
Reference
These are the available props for the <UserButton />
component:
Prop | Type | Default |
---|---|---|
className? | string | - |
classNames? | UserButtonClassNames | - |
additionalLinks? | { href: string; icon?: any; label: ReactNode; signedIn?: boolean | undefined; }[] | - |
localization? | AuthLocalization | authLocalization |
size? | "icon" | "full" | "icon" |
Examples
Icon Size Button
The size="icon"
prop turns the UserButton into a small button, showing only the user's avatar. This is the default size.


Full Width Button
The size="full"
prop turns the UserButton into a wide button, showing the user's avatar, name or email, and dropdown arrow. Recommended for desktop user menus.

Styling
You can fully customize the appearance of the UserButton component with UserButtonClassNames
using the classNames
prop.
Here's an example that drastically customizes the styling:
