Svelte · Workspace
WorkspaceAccountMenu
No summary has been written for WorkspaceAccountMenu. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.Public export
typescript
import { WorkspaceAccountMenu } from '@happyvertical/smrt-svelte/workspace';- Import path
@happyvertical/smrt-svelte/workspace- Props
- 11
- Props described
- 11 of 11
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
userNamestringYesUsername or identifier displayed in the account menu.userLabelstringNoCustom display name for the user, falls back to userName.avatarUrlstringNoURL for the user's avatar image.tenantLabelstringNoCustom display name for the current tenant.roleLabelstringNoUser's role or permission level.tenantsWorkspaceAccountTenant[]NoList of available tenants to switch between.currentTenantIdstring | nullNoID of the currently selected tenant.placementDropdownPlacementNoWhere the dropdown menu appears relative to the trigger button.disabledbooleanNoDisables the account menu button.onTenantSelect(tenantId: string) => voidNoCalled when the user selects a different tenant.onSignOut() => voidNoCalled when the user clicks sign out.Bindable state
This component has no bindable public state.
Callback events
onTenantSelect(tenantId: string) => voidonSignOut() => void