AisProgress
AisProgress provides a visual indication that the application is in a busy state. A progress indicator has three modes: determinate, indeterminate, and buffer. Each mode expresses a specific type of busy state depending on available information. See also AisSpinner.
Mode
Determinate
Use the determinate mode when you have a finite list to process and can calculate the completion percentage. Processing a list of files is a common use for a determinate progress bar.
10px
25%
Indeterminate
Use the indeterminate mode when it is not necessary or not possible know how close a task is to completion. A common need for an indeterminate progress bar is loading content over a network.
10px
Buffer
Use buffer mode when working with media content like streaming video.
10px
25%
40%
Custom message
Use the value slot to provide a custom progress message.
25%
Accessibility
Screen Reader
AisProgress components use the role progressbar along with the aria-value attribute for the determinate and buffer modes.
Specify a label to describe the progress bar with the aria-labelledby and aria-label attributes.
vue
<span id="progress_label">Progress Label</span>
<AisProgress mode="indeterminate" aria-labelledby="progress_label" />
<!-- OR -->
<AisProgress value="88" aria-label="Progress Label" />Component Reference
Props
Property | Type(s) | Required | Default | Description | Deprecated |
|---|---|---|---|---|---|
| buffer | Number | 0 | The current buffer amount. From 0 to 100. | false | |
| height | Number | 4 | Height of the progress bar. Defaults to 4. Valid values: Use a factor of 16 to match our TailwindCSS spacing scale, e.g. 2, 4, 8, 16, 24, 32. | false | |
| mode | String | 'determinate' | Works along with value prop. Apply a 0% to 100% loading bar. Valid values:
| false | |
| showValue | Boolean | false | Shows the current progress value. NOTE: Has no impact when using value slot. | false | |
| value | Number | 0 | The current progress value. From 0 to 100. | false | |
| valuePosition | String | 'center' | Sets the position of the value. NOTE: Has no impact when using value slot or when showValue is false. Valid values:
| false | |
| variant | String | 'primary' | Applies one of the theme color variants to the component Valid values: primary, secondary, default, info, success, warning, danger | false |
Slots
Name | Scoped | Description |
|---|---|---|
| value | No | Slot for custom rendering the progress value. |