Open the signed-in account from its avatar, with actions, other accounts to switch to & Sign out, built on Base UI.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
account | Account | - | 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. | |||
accounts | Account[] | - | 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. | |||
actions | AccountMenuAction[] | - | 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. | |||
status | none | online | offline | busy | none | A dot on the avatar for presence. |
| A dot on the avatar for presence. | |||
shape | none | rounded | pill | rounded | |
className | string | - | |
focus | boolean | string | true | |
container | HTMLElement | null | - | |