X Enterprises
Card

StatsGrid

Responsive grid wrapper that renders an array of XAStatsCard items.

StatsGrid

Responsive grid that renders an array of stat objects as <XAStatsCard> components.

Component

<XAStatsGrid />

Responsive grid that renders an array of stat objects as <XAStatsCard> components.

<XAStatsGrid
  :stats="[
    { title: 'Revenue', value: 48500, format: 'currency', icon: 'i-lucide-dollar-sign', trend: 12.4 },
    { title: 'Users', value: 3200, format: 'number', icon: 'i-lucide-users', trend: -2.1 },
  ]"
  :columns="2"
  gap="md"
/>

Props

PropTypeDefaultDescription
statsarray[]Array of stat objects (see XAStatsCard props).
columns1 | 2 | 3 | 4 | 5 | 64Number of columns at the widest breakpoint.
gap'sm' | 'md' | 'lg''md'Grid gap size.
localestring'en-US'Locale passed to each child card.

AI Context

component: XAStatsGrid
package: "@xenterprises/nuxt-x-app"
use-when: Displaying a row of metrics on a dashboard overview page using a flat stats array. XAStatsGrid accepts a flat stats array and renders each item as an XAStatsCard.
Copyright © 2026