Components › Charts

Stage bars

Horizontal bars split into stages, such as a pipeline per rep or sleep phases per night.

Installation

npx plankui@latest add stage-bars

Usage

import { StageBars } from "@/components/ui/stage-bars";

<StageBars rows={[{ label: "Ana", stages: [{ label: "Lead", value: 40 }, { label: "Won", value: 18 }] }]} />

API reference

PropTypeDefaultDescription
rows{ label; stages: { label; value; color? }[] }[]requiredSame stages in every row.
legendbooleantrueShow the stage legend.

View the source on GitHub