Progress
A custom component for displaying progress with support for stacked progress bars.
Example
Progress components are built with two components: a wrapper <i-progress>
and at least one <i-progress-bar>
. You can set the width of a progress bar by setting its value
property.
Sizes
You're able to use the size
modifier to control the size of your progress, using one of the available sizes: sm
, md
, and lg
.
The default size is set to md
.
Variants
Inkline includes multiple progress styles. You can change the style of a<i-progress>
to set the background using the variant
property.
Bar Variants
Inkline includes multiple progress styles. You can change the style of a <i-progress-bar>
to set the bar color using the variant
property.
Value
Inkline allows you to set a min
and max
modifier to calculate the progress based on a meaningful value. The new min
will represent 0%
and the max
will represent 100%
.
Stacked Bars
You can add multiple <i-progress-bar>
inside the <i-progress>
component to stack them, adding them up to a 100%
percentage.
Component API
Here you can find a list of the various customization options you can use for the progress components as props, as well as available slots.
Sass Variables
Here you can find a list of the Sass variables you can use for the progress components. If you're looking to find common variables that these rely on, you should take a look at the Sass Variables page.