Skip to main content

Loader

A reusable loader component is a visual element that indicates that data is loading or that an ongoing process is in progress. It can also display an error message if data retrieval fails. A loader component can communicate to the user that the loading is in progress and will take an indeterminate amount of time.

Variants

Props

PropsDatatypeValues/Example
loaderSizestring"20px"
loaderMessagestring"loading"
messageClassPropObjectfont-size: var(--base-text)
messageStylePropObjectfont-size: var(--base-text)
loaderContainerClassPropObjectfont-size: var(--base-text)
loaderContainerStylePropObjectfont-size: var(--base-text)