X Enterprises
Card

CardStat

Single-metric stat card with value formatting, trend badge, icon, and optional color theming.

CardStat

Single-metric stat card with automatic number formatting, trend badge, and configurable icon.

Component

<XACardStat />

Single-metric stat card with automatic number formatting, trend badge, and configurable icon.

<XACardStat
  label="Monthly Revenue"
  :value="48500"
  :trend="12.4"
  trend-label="vs last month"
  icon="i-lucide-dollar-sign"
  icon-color="success"
  format="currency"
  currency-symbol="$"
/>

Props

PropTypeDefaultDescription
labelstringRequired. Metric label.
valuestring | numberRequired. Metric value.
trendnumber | nullundefinedPercentage change (positive = up, negative = down).
trendLabelstring''Descriptive label beside the trend badge.
descriptionstring''Secondary text below the value.
iconstring''Lucide icon name.
iconColor'primary' | 'success' | 'warning' | 'error' | 'neutral''primary'Icon background/color theme.
size'sm' | 'md' | 'lg''md'Value font size.
format'number' | 'currency' | 'percent' | 'none''none'Number formatting mode.
currencySymbolstring'$'Symbol prepended in currency format.

AI Context

component: XACardStat
package: "@xenterprises/nuxt-x-app"
use-when: Displaying a single KPI metric on a dashboard with optional trend indicator and icon.
Copyright © 2026