components/bits/Spinner#
LoadingBlock()#
A centered page/panel spinner with optional copy — the "whole region is
loading" shape that was hand-rolled as a flex Box around a CircularProgress
in dozens of places.
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.
Replaces raw <CircularProgress> at call sites: the size comes from a named
variant instead of a magic number, and the colour defaults to something
correct for the context rather than to MUI's primary on top of a coloured
button.
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 is the only correct answer inside 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.