Spinner
Spinners provide a visual cue that an action is either processing, awaiting a course of change or a result.
Import#
import { Spinner } from "@chakra-ui/react"
Usage#
Loading...
Editable Example
Spinner with Color#
Loading...
Editable Example
Spinner with different size#
Loading...
Loading...
Loading...
Loading...
Loading...
Editable Example
Spinner with empty area color#
Loading...
Editable Example
Props#
| Name | Type | Description | Default |
|---|---|---|---|
| colorScheme | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "whiteAlpha" | "blackAlpha" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram" | Color Schemes for Spinner are not implemented in the default theme. You can extend the theme to implement them. | - |
| emptyColor | string | The color of the empty area in the spinner | - |
| label | string | For accessibility, it is important to add a fallback loading text. This text will be visible to screen readers. | - |
| size | "sm" | "md" | "lg" | "xl" | "xs" | "md" | |
| speed | string | The speed of the spinner. @example ```jsx <Spinner speed="0.2s"/> ``` | - |
| thickness | string | The thickness of the spinner @example ```jsx <Spinner thickness="4px"/> ``` | - |
| variant | string | Variants for Spinner are not implemented in the default theme. You can extend the theme to implement them. | - |