Skip to content

Progress

<ts-progress> vv0.4.0

The ts-progress component.

Open in Storybook for interactive demos.

<ts-progress max="100" size="md" value="0"></ts-progress>
PropertyAttributeTypeDefaultDescription
indeterminateindeterminatebooleanfalseWhether the progress is indeterminate.
labellabelstring | undefinedAccessible label for the progress bar.
maxmaxnumber100Maximum value.
showValueshow-valuebooleanfalseWhether to display the percentage value.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'The size of the progress bar.
valuevaluenumber0Current progress value (0 to max).
variantvariant"danger" | "info" | "primary" | "success" | "warning"'primary'The color variant.

Use ::part() to style internal elements:

PartDescription
fillThe progress fill bar.
labelThe value label text.
trackThe progress track.
ts-progress::part(fill) {
/* your custom styles */
}
<ts-progress max="100" size="md" value="0"></ts-progress>
import { TsProgress } from '@tessera-ui/react';
<TsProgress max="100" size="md"></TsProgress>