Dashboard
DashboardActiveUsers
Real-time active users count widget for the admin dashboard.
DashboardActiveUsers
Displays the number of users currently active in the application, refreshed on a configurable polling interval, with optional sparkline history.
Components
<XAdminDashboardActiveUsers />
Renders a compact stat card with the live active user count, delta since last period, and an optional mini sparkline.
<XAdminDashboardActiveUsers />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
endpoint | string | '/api/admin/dashboard/active-users' | API endpoint for active user count |
loading | boolean | false | Show loading skeleton |
refreshInterval | number | 15000 | Polling interval in milliseconds |
showSparkline | boolean | true | Show mini activity sparkline |
AI Context
component: XAdminDashboardActiveUsers
package: "@xenterprises/nuxt-x-app-admin"
category: Dashboard
use-when: Showing a live count of currently active users as a dashboard stat widget
