A [ ▪▪▪▪▪▪▪ ] run of square segments. With every segment lit it is a section divider; with
filled below segments it doubles as a coarse progress readout — the same segmented look as
Meter, sized for a heading line instead of a gauge.
tsx
<SegmentHeader filled={9} label="Quota used" segments={14} />filled
label
segments
Accessibility
Without label the whole header is decorative and hidden from assistive tech. Give it a label
and it becomes a role="meter" with aria-valuenow/aria-valuemax taken from filled and
segments.
Examples
tsx
<Column gap="12">
<SegmentHeader />
<SegmentHeader segments={10} filled={4} label="Quota used" />
</Column>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| filled | number | — | How many segments are lit. Defaults to all of them — a plain section rule. |
| label | text | — | Accessible name. Without it the whole header is decorative and hidden from assistive tech. |
| segments | number | — | Total number of square segments between the brackets. Defaults to 14. |