# Stats

> Headline numbers that back up a claim: customers, uptime, money saved.

Status: beta. Category: Blocks.

```ts
import { Stats } from '@glyphui/blocks'
```

Exports: `Stats`.

## Notes

- Values render as a description list, so each number is read with its label.

## Stats props

| Prop | Type | Default | Description |
|---|---|---|---|
| `items` (required) | `readonly StatItem[]` |  |  |
| `align` | `"center" \| "left"` | `left` |  |
| `animate` | `boolean` | `true` | Entrance animations as the block scrolls into view. They follow the theme's motion level and the visitor's reduced-motion setting; `false` turns them off for this block. Default true. |
| `description` | `ReactNode` |  |  |
| `eyebrow` | `ReactNode` |  |  |
| `headingLevel` | `HeadingLevel` | `2` |  |
| `title` | `ReactNode` |  |  |
| `variant` | `"cards" \| "plain"` | `plain` | `plain` (default) separates numbers with rules; `cards` puts each on a surface. |

## Example: Plain

```tsx
import { Stats } from '@glyphui/blocks'

export default function Example() {
  return (
    <Stats
      title="Numbers our customers see"
      items={[
        { label: 'Invoices sent last month', value: '1.2M' },
        { label: 'Average days to get paid', value: '9', description: 'Down from 31' },
        { label: 'Uptime, trailing 12 months', value: '99.99%' },
        { label: 'Countries with local payments', value: '46' },
      ]}
    />
  )
}
```

## Example: Cards, centered

```tsx
import { Stats } from '@glyphui/blocks'

export default function Example() {
  return (
    <Stats
      variant="cards"
      align="center"
      items={[
        { label: 'Teams', value: '4,200' },
        { label: 'Hours saved per month', value: '38k' },
        { label: 'Customer rating', value: '4.9/5' },
      ]}
    />
  )
}
```

Live page: https://glyphui.xyz/components/stats
