Progress
A custom component for displaying progress with support for stacked progress bars.
Basic 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.
Size Variants
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.
Color Variants
Inkline includes multiple progress styles. You set the wrapper <i-progress> background using the color property.
More importantly, you can change the color of an <i-progress-bar> using the color 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 100%.
Configuration
Props
Use props to modify the component’s design and behavior.
- Property
colorType'light' | 'dark'Default'light'Description The color variant of the progress component - Property
minTypeNumberDefault0Description The value to consider as the 0% starting point - Property
maxTypeNumberDefault100Description The value to consider as the 100% ending point - Property
sizeType'sm' | 'md' | 'lg'Default'md'Description The size variant of the progress component
Slots
Use slots to insert custom content into well-defined component locations.
- Property
defaultDescription Slot for default progress content
CSS Variables
Read more about configuring Inkline’s Design System variables to update the look and feel of the component.
- Property
----backgroundValuecolor('light')Description The background of the progress component - Property
----border-top-colorValuecolor('light-55')Description The border top color of the progress component - Property
----border-right-colorValuecolor('light-55')Description The border right color of the progress component - Property
----border-bottom-colorValuecolor('light-55')Description The border bottom color of the progress component - Property
----border-left-colorValuecolor('light-55')Description The border left color of the progress component - Property
----border-colorValuevar(----border-top-color) var(----border-right-color) var(----border-bottom-color) var(----border-left-color)Description The border color of the progress component - Property
----border-styleValuevar(--border-style)Description The border style of the progress component - Property
----border-top-widthValuevar(--border-top-width)Description The border top width of the progress component - Property
----border-right-widthValuevar(--border-right-width)Description The border right width of the progress component - Property
----border-bottom-widthValuevar(--border-bottom-width)Description The border bottom width of the progress component - Property
----border-left-widthValuevar(--border-left-width)Description The border left width of the progress component - Property
----border-widthValuevar(----border-top-width) var(----border-right-width) var(----border-bottom-width) var(----border-left-width)Description The border width of the progress component - Property
----border-top-left-radiusValuevar(--border-top-left-radius)Description The border top left radius of the progress component - Property
----border-top-right-radiusValuevar(--border-top-right-radius)Description The border top right radius of the progress component - Property
----border-bottom-right-radiusValuevar(--border-bottom-right-radius)Description The border bottom right radius of the progress component - Property
----border-bottom-left-radiusValuevar(--border-bottom-left-radius)Description The border bottom left radius of the progress component - Property
----border-radiusValuevar(----border-top-left-radius) var(----border-top-right-radius) var(----border-bottom-right-radius) var(----border-bottom-left-radius)Description The border radius of the progress component - Property
----box-shadow-offset-xValuevar(--box-shadow-offset-x)Description The box shadow horizontal offset of the progress component - Property
----box-shadow-offset-yValuevar(--box-shadow-offset-y)Description The box shadow vertical offset of the progress component - Property
----box-shadow-blur-radiusValuevar(--box-shadow-blur-radius)Description The box shadow blur radius of the progress component - Property
----box-shadow-spread-radiusValuevar(--box-shadow-spread-radius)Description The box shadow spread radius of the progress component - Property
----box-shadow-colorValuevar(--box-shadow-color)Description The box shadow spread radius of the progress component - Property
----box-shadowValuevar(----box-shadow-offset-x) var(----box-shadow-offset-y) var(----box-shadow-blur-radius) var(----box-shadow-spread-radius) var(----box-shadow-color)Description The box shadow of the progress component - Property
----heightValuespacing('3/4')Description The height of the progress component