Messages
ProgressSpinner
A ring that turns while something is running, or fills clockwise to a value.
WAI-ARIA tested
Import
main.ts
import { ProgressSpinner } from '@vitral/vue';Indeterminate
Three sizes and stroke widths.
Determinate
A value from 0 to 100 draws the ring’s share of a full turn over a faint track.
Colour
Per-instance tokens with `dt`.
API
Read from packages/vue/src/components/ProgressSpinner/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| size | string | number | Width and height: a CSS length, or pixels. Defaults to the `size` token (2rem). |
| strokeWidth | number | Stroke thickness, in units of a 32-unit ring, so pixels at the default size. Defaults to 3. |
| value | number | 0–100 draws a determinate ring; leave it out for the turning arc. |
| animationDuration | string | One turn of the indeterminate arc, as a CSS time. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.