X Enterprises
Card

CardActiveUsers

Card showing an active user count with an avatar stack and trend indicator.

CardActiveUsers

Displays an active-user count with a stacked avatar list, trend indicator, and overflow badge. Avatars can include images or fall back to initials.

Component

<XACardActiveUsers />

Renders a label, formatted count, a horizontally stacked list of user avatars (with overflow badge), and an optional trend percentage with label.

<XACardActiveUsers
  label="Active Members"
  count="1,234"
  :users="[
    { name: 'Alice Johnson', avatar: '/avatars/alice.png' },
    { name: 'Bob Smith' },
    { name: 'Carol White', avatar: '/avatars/carol.png' },
  ]"
  :trend="12.5"
  trend-label="from last month"
  :max-display="4"
  subtitle="currently online"
/>

Props

PropTypeDefaultDescription
labelstringRequired. Card label.
countstring | numberRequired. Active user count (can be pre-formatted like '12.4k').
users{ name: string; avatar?: string }[][]Users to show in the avatar stack.
trendnumberundefinedPercentage trend (positive or negative).
trendLabelstring'from previous month'Text label beside the trend.
maxDisplaynumber4Max avatars before showing +X more.
subtitlestring''Text shown beside the avatar stack.

AI Context

component: XACardActiveUsers
package: "@xenterprises/nuxt-x-app"
use-when: Dashboard card showing online or active user count with a visual avatar stack and month-over-month trend.
Copyright © 2026