Spinner
A loading spinner with multiple sizes and variants for async states.
@spectrumui/spinner-demo
Login to view codeCreate a free account to access component source code
Installation
Login to view commandCreate a free account to access the install command
Usage
Size
@spectrumui/spinner-size
Login to view codeCreate a free account to access component source code
With text and custom style
@spectrumui/spinner-with-text
Loading...Loading with custom style
Login to view codeCreate a free account to access component source code
Toggle spinner
@spectrumui/spinner-toggle
Login to view codeCreate a free account to access component source code
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Customize the style by adding tailwind. |
size | 'small' | 'medium' | 'large' | medium | Spinner size. |
show | boolean | true | Visibility of spinner. |
children | React.ReactNode | - | Add custom component or text. |