Key Figures

Big numbers side by side, each under a thin rule with a short lead-in and what it means.

  • Lens up toƒ/1.4Enough light for a room lit by one lamp.
  • Shutter up to1/1000sSet by a spring and a gear.
  • Batteries0Cold and heat change nothing.
import { KeyFigures } from '@brand-studio/ui';

export default function KeyFiguresDemo() {
  return (
    <KeyFigures
      label="The camera in numbers"
      items={[
        { lead: 'Lens up to', value: 'ƒ/1.4', detail: 'Enough light for a room lit by one lamp.' },
        { lead: 'Shutter up to', value: '1/1000', unit: 's', detail: 'Set by a spring and a gear.' },
        { lead: 'Batteries', value: '0', detail: 'Cold and heat change nothing.' },
      ]}
    />
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { KeyFigures } from '@brand-studio/ui';
<KeyFigures items={[{ lead: 'Shutter up to', value: '1/1000', unit: 's', detail: 'Set by a spring and a gear.' }]} />

Use three or four figures. Each number should be true and say something the reader can check.

Accessibility

  • The figures are a list; pass label to name it.
  • Each figure reads in order: lead-in, number with its unit, then the meaning.

API Reference

PropTypeDefault
itemsKeyFigure[]
label?string
className?string

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.