components/bits/Spinner#
LoadingBlock()#
A centered page/panel spinner with optional copy for the "whole region is loading" case.
Prefer SkeletonList when the shape of the incoming content is known; a
skeleton tells the user more than a spinner does.
Parameters#
| Parameter | Type |
|---|---|
props |
LoadingBlockProps |
Returns#
Element
Spinner()#
The app's single busy indicator.
The size comes from a named variant.
Parameters#
| Parameter | Type |
|---|---|
props |
SpinnerProps |
Returns#
Element
LoadingBlockProps#
Properties#
fill?#
Fills the parent instead of sitting at its natural height.
message?#
Text under the spinner. Say what is loading, not just "Loading…".
sx?#
SpinnerProps#
Properties#
color?#
Colour source. inherit (the default for inline/button) takes the colour
of whatever contains it, which suits a contained Button. page defaults to primary.
label?#
Screen-reader label. Always set one when the spinner is the only content.
sx?#
value?#
Determinate progress, 0-100. Omit for the indeterminate spinner.