# Stat rows

> Stacked KPI rows with label, value, and trend delta.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/item-17).

- Page, with a live preview: https://shadcn.exchange/r/flx/item-17
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/item-17-light-3eacf14df75e28e0.png
- Registry item: https://ui.flexnative.com/r/item-17.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/item-17.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `item`

## Files

### `registry/patterns/item/item-17.tsx`

```tsx
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemTitle,
} from '@/components/ui/item'
import { TrendingDownIcon, TrendingUpIcon } from 'lucide-react'

const stats = [
  {
    label: 'Revenue',
    value: '$48,210',
    delta: '+12.4% vs last month',
    trending: 'up' as const,
  },
  {
    label: 'New customers',
    value: '1,284',
    delta: '+4.1% vs last month',
    trending: 'up' as const,
  },
  {
    label: 'Churn',
    value: '2.1%',
    delta: '-0.3% vs last month',
    trending: 'down' as const,
  },
]

export function Item17() {
  return (
    <ItemGroup className="w-full max-w-md">
      {stats.map((s) => {
        const Trend = s.trending === 'up' ? TrendingUpIcon : TrendingDownIcon
        return (
          <Item key={s.label} variant="outline">
            <ItemContent>
              <ItemDescription>{s.label}</ItemDescription>
              <ItemTitle className="text-lg">{s.value}</ItemTitle>
            </ItemContent>
            <ItemActions>
              <span className="text-muted-foreground inline-flex items-center gap-1 text-xs">
                <Trend className="size-3.5" />
                {s.delta}
              </span>
            </ItemActions>
          </Item>
        )
      })}
    </ItemGroup>
  )
}
```
