๐ŸงจPre-releaseYou shouldn't use this library-1 min read

LoaderProps API Reference

Prop reference

TitleTypeDefaultDescription
variant'spinner'
| 'shaped'
| 'loady-experimental'
'spinner'

Variant of loader to display

captionReactElement
| string
โ€“

Optional caption to display next to the loader

size'small'
| 'medium'
| 'large'
'medium'

// Size of the loader, affects the icon size

layout'row'
| 'column'
'column'

Layout of the loader, whether to stack caption below or beside the spinner

classNamestring
โ€“

Additional class names for styling the loader root element

styleCSSProperties
โ€“

Inline styles for the loader root element

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
LoaderTargetClassRoot.NPUI-Loader-root

Root of the loader component

LoaderTargetClassCaption.NPUI-Loader-caption

Caption text for the loader

LoaderTargetClassSpinner.NPUI-Loader-spinner

Spinner element for the loader

Exports are available from /src/components/loader/loader.tsx or from
Related APIs
Made by .