Simple progress bar
Examples
Check out the Usage section for details about how to design a Simple progress bar properly, and the different configuration options we provide.
Basic Example
You can display a bar that indicates how far a process has progressed.
<SimpleProgressBar
completed={25}
total={100}
/>
Usage
Coming soon.
Code
<SimpleProgressBar
completed={25}
total={100}
/>
Import statement
import { SimpleProgressBar } from '@jutro/components';
Component contract
Make sure to understand the Design System components API surface, and the implications and trade-offs. Learn more in our introduction to the component API.
Properties
completed
required- Type
number
DescriptionNumber of steps that were completed.
total
required- Type
number
DescriptionTotal number of steps.
className
- Type
string
DescriptionClass to override the whole component styles.
hideLabel
- Type
bool
DescriptionHides the label. If you need to make the component be without a label and accessible, provide the label prop and set hideLabel to true -> aria-label attribute will be set to label.
Default valuefalse
label
- TypeDescription
Label of the progress bar.
labelPosition
- Type
'top' | 'bottom'
DescriptionAllows you to select the position of the progress bar label.
showPercentageProgress
- Type
bool
DescriptionIf true, shows percentage progress instead of fractions.
showProgressLabel
- Type
bool
DescriptionShows progress label.
id
deprecated- Type
string
DescriptionA unique ID for this element.
path
deprecated- Type
string
DescriptionHint path to value.
progressBarClassName
deprecated- Type
string
DescriptionClass to override the progress bar styles.
stepClassName
deprecated- Type
string
DescriptionClass to override the progress bar step styles.
value
deprecated- Type
number
DescriptionNumber of steps that were completed when used with path.
Hooks
No hooks are available for SimpleProgressBar.
Translation keys
There are no translations for SimpleProgressBar.
For information on how to manage translations, see our section about Internationalization.
Escape Hatches
For more information, see our documentation about escape hatches.