Progress Circle #
The va-progress-circle
component is used to display an indicator of an app loading content. Also check the va-progress-bar component.
Examples #
Default #
By default, the va-progress-circle
displays a circular progress bar. Use the value
prop to control the progress.
Indeterminate #
Use the indeterminate
prop so that the va-progress-circle
continuously animates.
Coloring #
Use predefined colors or use your own with the color
prop.
Sizing #
Use predefined sizes or use your own with the size
prop.
Slots #
There is also the default slot
if you want to display some additional info about the progress.
Thickness #
Use the thickness
prop to adjust the stroke size.
Accessibility #
The role of the component is progressbar, the aria-label of the component is progress state
, if the value of the component is not indeterminate, aria-valuenow is set to the modelValue
prop.
API #
Props #
Name | Description | Types | Default |
---|---|---|---|
ariaLabel | The aria-label of the component |
|
|
color | Color of the component (theme string or |
|
|
fontSizesConfig | Provide a set of sizes for fonts as a global component specific setting. |
|
|
indeterminate | Using the |
|
|
modelValue | The value of the |
|
|
preset | Named preset combination of component props. |
| - |
size | Specify size for component. |
|
|
sizesConfig | Provide a set of sizes as a global component specific setting. |
|
|
thickness | Circle border size between 0 and 1 |
|
|
Slots #
Name | Description |
---|---|
default | Display any additional info about the progress |
Css Variables #
Name | Default Value |
---|---|
--va-progress-circle-position | relative |
--va-progress-circle-overflow | hidden |
--va-progress-circle-width | 80% |
--va-progress-circle-height | 80% |
--va-progress-circle-overlay-transition | all ease 2s |
--va-progress-circle-font-size | 0.75rem |