Progress
Progress is used to display the progress status for a task that takes a long time or consists of several steps.
React
import { Progress } from '@hoverinc/design-system-react-web';
Value
Pass a value and optionally pass a max value (max defaults to 100).
Size
There are two ways you can increase the height of the progress bar:
- You can add sizeprop to increase the height of the progress bar.
- You can also use the heightprop to manually set a height.
Color mode
By default, Progress uses the color mode context to determine whether to
display a dark or light placeholder animation. Pass colorMode to manually
force a color mode.
Animated
To show an animated progress, pass the isAnimated prop.
Indeterminate
To show an indeterminate progress, pass the isIndeterminate prop.
Accessibility
- Progresshas a- roleset to- progressbarto denote that it is a progress.
- Progresshas- aria-valuenowset to the percentage completion value passed to the component, to ensure the progress percent is visible to screen readers.