2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

UserMenu

Updated: May 9, 2025
View on GitHub
The UserMenu component renders a user avatar and name, and opens a dropdown for settings or account-level actions when clicked or focused. It is built on top of DropdownWrapper and Usercomponents. You can show skeleton content while loading profile data by setting loading={true}.
Prop
Type
Default
selected
Mark the trigger as active while the menu is open.
booleanfalse
placement
Which side the menu opens on.
toprightbottomlefttop-starttop-endright-startright-endbottom-startbottom-endleft-startleft-end
dropdown
The menu contents.
React.ReactNode
className
string
style
React.CSSProperties
…and every UserProps propinherited
…and every DropdownWrapperProps propinherited
name
string
subline
ReactNode
avatarProps
AvatarProps
loading
booleanfalse
minWidth
SpacingToken
maxWidth
SpacingToken
minHeight
SpacingToken
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club