sigilUI

Stats Section

Present a group of metrics with labels and context.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { StatsSection } from "@sigil-ui/components";

Usage

<StatsSection
    label="By the numbers"
    title="Sigil at a glance"
    stats={[
      { value: "350+", label: "Components" },
      { value: "519", label: "Design tokens" },
      { value: "46", label: "Presets" },
      { value: "33", label: "Token categories" },
    ]}
  />

Props

PropTypeDefaultDescription
labelstring—Readable label for the component.
titleReactNode—Heading displayed in the component.
descriptionstring—Supporting text below the heading.
stats (required)StatItem[]—Stats configuration.
variant"inline" | "cards" | "bordered"—Selects a supported visual treatment.

Token integration

CSS VariablePurpose
--s-section-pySection py
--s-content-maxContent max
--s-page-marginPage margin
--s-radius-cardRadius card
--s-border-mutedBorder muted
--s-surfaceSurface
--s-borderBorder
--s-font-displayFont display
--s-textText
--s-successSuccess
--s-text-mutedText muted
--s-text-subtleText subtle