Progress bars can represent nondeterministic and deterministic processes.
🙌 Heads up! This code is editable. The preview above will update to reflect your changes.
Usage
import { ProgressBar } from 'materialish';
import 'materialish/materialish.css';
Props
Prop Name | Default Value | Description |
---|
loaded | 0 | How much has loaded; must be a number between 0 and 100. Only required when indeterminate is false . |
buffered | 100 | How much has buffered; must be a number between 0 and 100. Only required when indeterminate is false . |
indeterminate | false | Pass true for this bar to represent an indeterminate process. |
nodeRef | | Pass a ref to get access to the root node |
...rest | | Other props are placed on the root element |
CSS Variables
Variable | Default Value | Description |
---|
--mt-baseFontSize | 1rem | The dimensions of the progress bar are based off of this value |
--mt-progressBar-backgroundColor | var(--mt-mainColor, #2196f3) | The color of the progress bar |