Progress Radial

Displays a radial indicator showing the progress or completion of a task.

javascript
import { ProgressRadial } from '@brainandbones/skeleton';

Examples

50%

Indeterminate

Remove the value property to set to indeterminate mode.

Usage

ts
let valuePercent: number = 50; // %
html
<ProgressRadial value={valuePercent} stroke={20}>{valuePercent}%</ProgressRadial>

Properties

Prop Type Default Description
valuenumber-Set the meter fill amount. Shows as indeterminate when set undefined.
strokenumber20Sets the base stroke width. Scales responsively.
meterstringstroke-black dark:stroke-whiteProvide classes to set meter color.
trackstringstroke-surface-300 dark:stroke-surface-700Provide classes to set track color.
colorstringfill-black dark:fill-whiteProvide classes to set the SVG text fill color.
fontstring56Sets the base font size. Scales responsively.

Slots

Name Description
defaultText content is rendered as SVG text in the center of the element.

Accessibility

ARIA Guidelines
Prop Required Description
label-A semantic ARIA label.