Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

Spinner

A spinner can be used to display the loading state when the part of the page is waiting for action results.

Import

Usage

EDITABLE EXAMPLE

Colors

EDITABLE EXAMPLE

Sizes

Use the size prop to change the size of a spinner. You can set the value to xs, sm, md, lg, or xs. The corresponding stroke width is listed below:

SizeStroke Width
xs2px
sm2px
md4px
lg4px
xl4px
EDITABLE EXAMPLE

StrokeWidth

EDITABLE EXAMPLE

Speed

EDITABLE EXAMPLE

Props

NameTypeDefaultDescription
sizestring'md'The size of the spinner. Acceptable values: 'xl', 'lg', 'md', 'sm', 'xs'.
colorstring'blue:60'The color of the spinner.
strokeWidthnumberSet the stroke width for the spinner.
speedfloat2Set the spinning speed for the spinner.