Components
BaseInlineProgress
A compact progress bar for table cells and list rows, with an optional percentage.
components/ui/BaseInlineProgress.vue
View in the demo
Example
42%
100%
Use it where a full BaseMeter (label, value and note) does not fit: a student's progress in a table, the share of an invoice already collected under its amount. show-value adds the percentage, formatted for the current language; without it, pass label so screen readers hear what the bar means. width keeps the bar readable when the column is narrow. For shares of a total with several parts use BaseSegmentBar.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
valuerequired | number | — | How far along, from 0 to 100. |
color | string | "primary" | The colour of the bar. |
height | number | 6 | The bar height in pixels. |
show-value | boolean | false | Shows the percentage after the bar. |
label | string | — | The accessible name, such as "$420 collected"; the percentage when empty. |
width | string | number | — | The minimum width of the bar and its percentage, in pixels or any CSS length, so the bar stays readable inside a narrow table cell. |