Skip to content

UI: ProgressBar

View as Markdown

A labelled progress bar with its value as text. Import the token file once (@pithyx/ui/tokens.css) and wrap the app in UiProvider; see @pithyx/ui.

Generated from the TSDoc comments of @pithyx/ui 1.0.0-rc.9 at build time; the text below the headings is the comment in the source.

The props of ProgressBar: React Aria’s progress bar props plus the label.

  • Omit<AriaProgressBarProps, "className" | "children">
label: ReactNode;

The label above the bar, also the accessible name.

optional showValue?: boolean;

Whether the value is shown as text next to the label; true when left out.

optional className?: string;

Extra class names, added after the bar’s own.

function ProgressBar(props): Element;

A labelled progress bar that shows its value as text unless showValue is false. Without value it is indeterminate only when isIndeterminate is set.

Parameter Type Description
props ProgressBarProps React Aria’s progress bar props (value, minValue, maxValue, formatOptions) plus the label.

Element

The progress bar with its label.