Skip to main content

Account Menu

Open the signed-in account from its avatar, with actions, other accounts to switch to & Sign out, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
accountAccount-Who is signed in: the avatar, and the card at the top of the menu.
Who is signed in: the avatar, and the card at the top of the menu.
accountsAccount[]-Every signed-in account, the current one included, listed to switch between.
Every signed-in account, the current one included, listed to switch between.
onSwitch(account: Account) => void-Called with the account picked from the list.
Called with the account picked from the list.
actionsAccountMenuAction[]-Rows under the card, such as Settings.
Rows under the card, such as Settings.
onAddAccount() => void-Called from the Add account row under the list.
Called from the Add account row under the list.
onSignOut() => void-Called from the Sign out row at the bottom.
Called from the Sign out row at the bottom.
statusnone | online | offline | busynoneA dot on the avatar for presence.
A dot on the avatar for presence.
shapenone | rounded | pillrounded
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-