Skip to content

Progress

<ts-progress> vv0.6.3

The ts-progress component.

Open in Storybook for interactive demos.

<ts-progress max="100" size="md" value="0"></ts-progress>
PropertyAttributeTypeDefaultDescription
animatedanimatedbooleanfalseWhether to animate the stripes (requires striped to be true).
bufferValuebuffer-valuenumber | undefinedBuffer value for showing buffered/loaded amount (linear only).
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.
stripedstripedbooleanfalseWhether to show diagonal stripes on the fill (linear only).
typetype"circular" | "linear"'linear'The type of progress indicator.
valuevaluenumber0Current progress value (0 to max).
variantvariant"danger" | "info" | "primary" | "success" | "warning"'primary'The color variant.

Use ::part() to style internal elements:

PartDescription
bufferThe buffer fill bar.
circle-fillThe circular fill ring.
circle-textThe circular percentage text.
circle-trackThe circular track ring.
fillThe progress fill bar.
labelThe value label text.
svgThe circular SVG element.
trackThe progress track.
ts-progress::part(buffer) {
/* 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>