s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Tenancy · Components

TenantCard

TenantCard - Tenant information and management refactored for Material 3

Public export

typescript
import { TenantCard } from '@happyvertical/smrt-tenancy/svelte';
Import path
@happyvertical/smrt-tenancy/svelte
Props
7
Props described
7 of 7
Bindable state
0
Callback events
3
Verified release
0.44.0

Props

NameTypeRequiredDescription
tenantTenantYesThe tenant to display.
memberCountnumberNoNumber of members in the tenant.
onclick() => voidNoFired when the card is clicked.
selectedbooleanNoHighlights the card when true.
actionsbooleanNoShows edit and delete buttons when true.
onedit() => voidNoFired when the user clicks the edit button.
ondelete() => voidNoFired when the user clicks the delete button.

Bindable state

This component has no bindable public state.

Callback events

  • onclick() => void
  • onedit() => void
  • ondelete() => void

Examples and explanation