Elements
Circular progress
A ring that fills up to show how far a task has gone, from 0 to 100.
Usage
Progress
Use the progress prop to set how much of the ring is filled, from 0 to 100. Values outside this range are clamped.
<KCircularProgress :progress="25" />
<KCircularProgress :progress="50" />
<KCircularProgress :progress="75" />
<KCircularProgress :progress="100" />
Label
Use the label prop to set the name announced by screen readers. The default is Progress.
<KCircularProgress :progress="60" label="Upload progress" />
Size
Use a size-* class to change the size of the ring.
<KCircularProgress :progress="60" />
<KCircularProgress :progress="60" class="size-10" />
<KCircularProgress :progress="60" class="size-14" />
Customization
Use the ui prop to change the classes of each part of the ring: base for the SVG, track for the background circle and indicator for the filled part.
<KCircularProgress :progress="60" :ui="{ track: 'stroke-secondary/15', indicator: 'stroke-secondary' }" />
API
Props
| Prop | Type | Default |
|---|---|---|
progress | number | |
label | string | 'Progress' |
ui | { base?, track?, indicator? } | |
class | string |