Materialish

Spinner

A Spinner is a nondeterministic loading indicator.

🙌 Heads up! This code is editable. The preview above will update to reflect your changes.

Usage

import { Spinner } from 'materialish';
import 'materialish/materialish.css';

Props

Prop NameDefault ValueDescription
size"calc(var(--mt-baseFontSize, 1rem) * 1.5)"The size of the Spinner
classNameAdditional class name(s) to add to the root svg element
nodeRefPass a ref to get access to the root svg element
...restOther props are placed on the root svg element

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize1remThe size of the Spinner is based off of this value
--mt-spinnerColorProvide a color for a monochrome spinner

Useful Links