Spinner

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

Import#

import { Spinner } from "@nature-ui/core";

Usage#

<Spinner />

Spinner with Color#

<Spinner className="text-red-500" />

Spinner with different size#

<Stack row>
<Spinner size="2rem" />
<Spinner size="3rem" />
<Spinner size="4rem" />
</Stack>

Spinner with empty area color#

<Spinner
thickness="4px"
speed="0.65s"
className="text-blue-500"
size="3rem"
emptyColor="var(--primary-200)"
/>

Props#

NameTypeDefaultDescription
size"lg" | "md" | "sm" | "xs"mdThe 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 css color of the empty areas in the spinner.