sigilUI

Stats Section

Stat counters in bordered, card, or inline layout with optional trend indicators.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<StatsSection
  label="Traction"
  title="Numbers that matter"
  stats={[
    { value: "10k+", label: "Developers" },
    { value: "99.9%", label: "Uptime", trend: "+0.2%" },
    { value: "50ms", label: "Avg latency" },
  ]}
/>

Cards variant

<StatsSection
  stats={stats}
  variant="cards"
/>

Props

PropTypeDefaultDescription
labelstring—Uppercase mono label
titleReactNode—Section heading (omit to show stats only)
descriptionstring—Supporting text
statsStatItem[]requiredArray of { value, label, description?, trend? }
variant"inline" | "cards" | "bordered""bordered"Visual treatment
classNamestring—Additional CSS classes

Plus all standard <section> HTML attributes.