Compositions
LoadingState
LoadingState is a full-region blocking loading indicator: a centred
spinner (optionally labelled) filling a minimum height.
Prefer SkeletonText/SkeletonRow for in-place loading inside content
that's already on screen - reach for LoadingState only when the whole
region has nothing else to show yet.
Usage
Best practices
Reserve
LoadingStatefor a whole region / page with nothing to show yet; for in-place loading over existing layout preferSkeleton, and a small inline spinner isSpinner.Pass
labelto name the live region for AT; it already rendersaria-live="polite"with a default "Loading" name, so don't add your own status role.
Props
Also exports
- type
LoadingStateMinHeight - interface
LoadingStateProps