Loader
@stellaria/nebula-webLoaderPropsPreview
Props
5| Prop | Type | Default |
|---|---|---|
className | string | — |
color The scale it is drawn from, at the 600 step. Tint it to the surface it sits on, not to the action it belongs to — a loader is not a control. | ColorExtended | "primary" |
label The accessible name. The loader is a live `status` region with no visible text, so this is the whole of what is announced; say what is loading, not that something is. It is English by default (ADR-120); translate it at the call site. | string | "Loading" |
size The loader's square, as a control step or as any length. It takes a raw value so it can be matched to the control it sits inside rather than to the nearest step. | Size | Unit | "md" |
type Which shape spins. They differ in feel, not in meaning: the spinner for a wait of unknown length, the dots for one expected to be short, the bars where a row of them has to read as a placeholder. | LoaderType | "spinner" |
Also accepts
On top of its own props, this component forwards these groups.