Tenant Management
Tenant dashboard, list, and detail views
SaaSPlatform Admin
Overview
The Tenant components provide a comprehensive tenant management interface. TenantDashboard displays key metrics, plan distribution charts, and recent activity. TenantList provides a sortable, filterable table with row actions and optional bulk operations. TenantDetail shows a single tenant's profile, plan, status, and metadata with contextual action buttons.
Usage
import { TenantDashboard, TenantList } from "@leanicon/web-builder-library/saas";
<TenantDashboard
metrics={metrics}
planDistribution={distribution}
recentActivity={activity}
onActivityItemClick={(item) => router.push(`/tenants/${item.metadata.tenantId}`)}
onViewAllActivity={() => router.push("/activity")}
/>;
<TenantList
tenants={tenants}
totalCount={150}
pagination={pagination}
onPaginationChange={setPagination}
sorting={sorting}
onSortingChange={setSorting}
columnFilters={columnFilters}
onColumnFiltersChange={setColumnFilters}
onViewDetails={(tenant) => router.push(`/tenants/${tenant.id}`)}
onEdit={(tenant) => openEditModal(tenant)}
/>;Variants
Tenant Dashboard
Total Tenants
150
+12.0%vs last monthActive Tenants
142
+5.0%vs last monthNew This Month
15
3.0%vs last monthChurned
2
1.0%improvementTenants by Plan
Recent Activity
Tenant Dashboard (Dark)
Total Tenants
150
+12.0%vs last monthActive Tenants
142
+5.0%vs last monthNew This Month
15
3.0%vs last monthTenants by Plan
Recent Activity
Tenant List
Name
Plan
Status
Users
MRR
Created
Acme Corporation
acme-corp
Professional
Active
45
$499
Jan 15, 2023
Tech Startup
tech-startup
Starter
Active
8
$49
Jun 20, 2023
Suspended Company
suspended-co
Professional
Suspended
30
$499
Mar 10, 2023
Showing 1 to 3 of 3 results
Rows per page
Page 1 of 1
Tenant Detail
Acme Corporation
acme-corp
Professional
Active
Users
45
MRR
$499
Created
Jan 15, 2023
Tenant ID
tenant-1
Additional Information
- industry
- Technology
- companySize
- 50-100 employees
- region
- North America
Tenant Detail Suspended
Acme Corporation
acme-corp
Professional
Suspended
Users
45
MRR
$499
Created
Jan 15, 2023
Tenant ID
tenant-1