Materialish

Progress Bar

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 NameDefault ValueDescription
loaded0How much has loaded; must be a number between 0 and 100. Only required when indeterminate is false.
buffered100How much has buffered; must be a number between 0 and 100. Only required when indeterminate is false.
indeterminatefalsePass true for this bar to represent an indeterminate process.
nodeRefPass a ref to get access to the root node
...restOther props are placed on the root element

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize1remThe dimensions of the progress bar are based off of this value
--mt-progressBar-backgroundColorvar(--mt-mainColor, #2196f3)The color of the progress bar

Useful Links