Spinner

Spinners provide a visual cue that an action is processing awaiting a course of change or a result.

Import#

import { CSpinner } from '@chakra-ui/vue'

Usage#

Editable Example
<c-spinner />

Spinner with Color#

Editable Example
<c-spinner color="blue.500" />

Spinner with different size#

Editable Example
<c-stack is-inline :spacing="4">
  <c-spinner size="xs" />
  <c-spinner size="sm" />
  <c-spinner size="md" />
  <c-spinner size="lg" />
  <c-spinner size="xl" />
</c-stack>

Spinner with empty area color#

Editable Example
<c-spinner
  thickness="4px"
  speed="0.65s"
  empty-color="green.200"
  color="vue.500"
  size="xl"
/>

Props#

NameTypeDefaultDescription
sizexl,lg,md,sm,xsmdThe size of the spinner.
thicknessstring2pxThe thickness of the spinner.
speedstring0.45sThe speed of the spinner.
labelstringLoading...An accessible label for the spinner (Useful for screen readers)
colorstringThe color of the spinner.
emptyColorstringtransparentThe color of the empty areas in the spinner.

❤️ Contribute to this page

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!