# Stats row

- **[Sections](/blocks/)**
- **[Stats](/blocks/stats/)**
- **Stats row**

A short heading and two to four large figures with labels.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/stats-row
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/stats-row';
  ```

Also called

- stats/row

- **Category**: A few numbers that prove the point. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A short heading and two to four large figures with labels, in a plain hairline grid. It is the quiet default for company numbers; take `stats-band` when you want a loud single band or `stats-split` if one number leads.
- **Writing for it**: - Values hold 16 characters and labels 60, so a value is a figure and a label says what is counted. 'Founded in 2014' is a label, '2014' is a value.
- Both title and description are optional here, so for a bare strip of numbers you can empty them and let the figures stand alone.
- Stick to equal weight. If one of your four numbers is far more important than the others, move to `stats-split` instead of making it longer.
- **Watch out for**: The grid is two columns on medium containers and four on wide ones, so with three items the last cell is empty on wide screens. Use exactly two or four figures if you want a clean row.

## Pairs well with

- **[Logos strip](/blocks/logo-cloud/row)**
- **[Features, grid](/blocks/features/grid)**
- **[Testimonials, grid](/blocks/testimonials/grid)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import StatsRow from '@/components/klarhimmel/blocks/stats-row';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <StatsRow props={{
          "title": "Say what the numbers add up to",
          "description": "Say what readers tell you after a period of use.",
          "items": [
            {
              "value": "0.0 h",
              "label": "Name the first result"
            },
            {
              "value": "00%",
              "label": "Name the second result"
            },
            {
              "value": "00 000+",
              "label": "Name the third result"
            },
            {
              "value": "00.00%",
              "label": "Name the fourth measure"
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **look**: One of 'ruled'. Optional; empty is not rendered.
- **actions**: Fields: primary (optional), secondary (optional). Optional; empty is not rendered.
- **items**: List of 2 to 4. Each item: value, label.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/stats/rings)

[Next](/blocks/stats/split)
