Spinner

Spinner indicate the loading state of a component or page, it can help to the user aware and that the data is processing.

Basic

Basic usage.

Size

We can configure the Spinner size on size prop.

Color

Using text color css able to override the spinner color

Custom Indicator

If you don't fancy the default spinner, you can replace it with your own spinner instead.

Static

Stop the spining animation by setting isSpining to false.

API

Spinner
PropDescriptionTypeDefault
colorCustom color for Spinner, available colors option based on tailwind theme.colorsstringcurrent theme color
enableThemeWheter the Spinner inherit theme colorbooleantrue
indicatorSpinner indicatorReactNodeCgSpinner
isSpiningWheter the Spinner is spinningbooleantrue
sizeSize of Spinnerstring | number20