Tenancy · Components
TenantSwitcher
Dropdown for switching between tenantsPublic export
typescript
import { TenantSwitcher } from '@happyvertical/smrt-tenancy/svelte';- Import path
@happyvertical/smrt-tenancy/svelte- Props
- 4
- Props described
- 4 of 4
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
membershipsMembership[]YesUser's tenant memberships.tenantsMap<string, Tenant>YesMap of tenant IDs to tenant objects.currentTenantIdstringYesID of the currently selected tenant.onchange(tenantId: string) => voidNoFired when the user selects a different tenant.Bindable state
This component has no bindable public state.
Callback events
onchange(tenantId: string) => void