X Enterprises
Card

StatsCard

Stats card with value formatting, trend indicator, icon, and color theming.

StatsCard

Option-object-based stats card with full Intl number formatting and color theming.

Component

<XAStatsCard />

Option-object-based stats card with full Intl number formatting and color theming.

<XAStatsCard
  title="Total Users"
  :value="12400"
  format="number"
  icon="i-lucide-users"
  color="primary"
  :trend="5.2"
  trend-label="from last month"
/>

Props

PropTypeDefaultDescription
titlestringRequired. Card label.
valuenumber | stringundefinedMetric value.
format'number' | 'currency' | 'percent''number'Number formatting mode.
currencystring'USD'ISO currency code for currency format.
localestring'en-US'Locale for Intl formatting.
iconstring''Lucide icon name.
colorstring'primary'Icon/accent color theme.
trendnumberundefinedPercentage change.
trendLabelstring''Label beside the trend indicator.
descriptionstring''Secondary description text.
loadingbooleanfalseShow loading skeleton.

AI Context

component: XAStatsCard
package: "@xenterprises/nuxt-x-app"
use-when: Displaying a single KPI metric with Intl number formatting, trend indicator, and icon. Uses Intl formatting; for a simpler format prop approach use XACardStat.
Copyright © 2026