Skip to content

Stats

Built on Stat. Figures sit two to a row on small screens and step up to columns on wide ones.

  • 3

    Layers: elements, components, sections

  • 4

    Surfaces

  • 0

    Runtime dependencies

  • 1

    File per piece

  • stats: list of { value, label, trend? }
  • columns: 2, 3, 4 (default)
  • align: start, center (default)
  • dividers: a rule between figures in each row
  • eyebrow, title, intro: optional section header
  • layout: where the header sits. stacked (default, above), split (beside, with figures in two columns)
  • surface: light, alternate, brand, dark
<Stats
stats={[
{ value: "3", label: "Layers: elements, components, sections" },
{ value: "4", label: "Surfaces" },
{ value: "0", label: "Runtime dependencies" },
{ value: "1", label: "File per piece" },
]}
/>
dividers surface="brand"
  • 3

    Layers: elements, components, sections

  • 4

    Surfaces

  • 0

    Runtime dependencies

  • 1

    File per piece

title, columns="3" align="start" dividers surface="alternate"

In numbers

Small by design

Every figure describes the library itself.

  • 3

    Layers: elements, components, sections

  • 4

    Surfaces

  • 0

    Runtime dependencies

layout="split" surface="dark"

Samla in numbers

Counted from the library, so they stay true.

  • 3

    Layers: elements, components, sections

  • 4

    Surfaces

    Light, alternate, brand, dark

  • 0

    Runtime dependencies

  • 1

    File per piece