Skip to content

Spinner

An animated loading spinner with multiple built-in styles. Extends TextProps for style inheritance.

Import

tsx
import { Spinner } from "silvery"

Props

SpinnerProps extends TextProps (excluding children).

PropTypeDefaultDescription
type"dots" | "line" | "arc" | "bounce""dots"Spinner style preset
labelstring--Label text shown after spinner
intervalnumber80Animation interval in ms

All TextProps style props (color, bold, etc.) are also accepted.

Frame Sequences

TypeFrames
dots"..."
line| / -- \
arccurved arcs
bouncebouncing dots

Usage

tsx
<Spinner />
<Spinner type="arc" label="Loading..." />
<Spinner type="bounce" interval={120} />
<Spinner color="$primary" label="Processing" />

See Also

Released under the MIT License.