There is also a default slot if you want to display anything you want inside the progress bar.
Progress
Wrapper around Bulma / Native HTML progress bars
40
80%
# Types
20
40
60
80
100
# Sizes
# Not rounded
40
80%
# Values
80,500
# Slot
Custom display with HTML
75 / 100
3 out of 4
# Multiple bars
You can also include multiple progress bars in a progress component if you need.
* This will not use the native progress
element.
# API
Progress
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the progress bar, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-darkgrey |
size | Size of the progress bar, optional | String | is-small , is-medium , is-large | — |
rounded | rounded style of the progress bar, optional | Boolean | false , true | true |
value | The progress value, progress will be indeterminate if undefined. | Number | — | — |
max | The maximum value for the progress bar. | Number | — | 100 |
show-value | If the value should be displayed inside the progress bar. | Boolean | — | false |
format | Which format should be used to display the value (if show-value is true ).
The value will be displayed as-is if using raw . The percent using value
and max will be calculated and displayed if using percent | String | raw , percent | raw |
precision | How many decimals should be displayed. | Number | — | 2 |
keep-trailing-zeroes | Truncate or not the trailing zeroes | Boolean | — | true |
locale | Accept a string with a BCP 47 language tag, or an array of such strings. See Unicode BCP 47 locale identifier | String, Array of String | — | undefined : default to browser locale. |
Bar
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the progress bar, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | inherited from parent |
value | The progress value. | Number | — | — |
show-value | If the value should be displayed inside the progress bar. | Boolean | — | inherited from parent |
# Variables
You can use these variables to customize this component.
Name | Default |
---|---|
Bulma variables | Link |
This page is open source. Noticed a typo or something's unclear?