sigilUI

Waterfall Chart

Show how successive changes contribute to a final total.

@sigil-ui/componentsReact

Preview

Build-time comparison Interactive

Import

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

Usage

<WaterfallChart
    rows={[
      { label: "Cold build", steps: [{ label: "Install", duration: 420 }, { label: "Compile", duration: 360 }, { label: "Bundle", duration: 180 }] },
      { label: "Cached", steps: [{ label: "Restore", duration: 90, color: "var(--s-primary)" }, { label: "Verify", duration: 55, color: "var(--s-success)" }], accent: true },
    ]}
    badge="6.6× faster"
  />

Props

PropTypeDefaultDescription
rowsWaterfallRow[]——
unitstringmsUnit label for totals.
badgestring—Badge text shown below (e.g. "~50x faster").

Token integration

CSS VariablePurpose
--s-duration-normalDuration normal
--s-ease-outEase out
--s-ease-defaultEase default
--s-textText
--s-text-mutedText muted
--s-primaryPrimary
--s-radius-smRadius sm
--s-surface-elevatedSurface elevated
--s-chart-series-1Chart series 1
--s-primary-contrastPrimary contrast
--s-shadow-smShadow sm
--s-successSuccess