Flutter docs
Default skin

Spin

Used for the loading status of a page or a block.

When to use

When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.

Examples

API

Spin are exported from @ceebee/ui/client.

Spin

PropertyDescriptionTypeDefaultVersion
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string>-—
delaySpecifies a delay in milliseconds for loading state (prevent flush)number (milliseconds)-—
descriptionCustomize description contentReactNode-6.3.0
fullscreenDisplay a backdrop with the Spin componentbooleanfalse5.11.0
indicatorReact node of the spinning indicatorReactNode-—
percentThe progress percentage, when set to auto, it will be an indeterminate progressnumber | 'auto'-5.18.0
sizeThe size of Spin, options: small, medium and largestringmedium—
spinningWhether Spin is visiblebooleantrue—
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props }) => Record<SemanticDOM, CSSProperties>-—
tipCustomize description content when Spin has children. Deprecated, use description insteadReactNode-—
wrapperClassNameThe className of wrapper when Spin has children. Deprecated, use classNames.root insteadstring-—