Skip to content

AisSpinner ​

AisSpinner provides an animated icon that indicates the application is in a busy state. The spinner is centered horizontally in its container. Developers with more specific needs may use AisIcon's busy icon to build their own spinner. See also AisProgress.

Example ​

By default AisSpinner provides a page-sized spinner, but it also exposes props to customize the spinner's look and feel. Developers are expected to use standard Tailwind classes to customize the component.

Props ​

Description ​

description accepts a string that will be accessible to screen readers. The default message is "Loading data".

Size ​

size accepts a Tailwind text size class. The default value is text-7xl.

Color ​

color accepts a Tailwind text color class. The default value is text-ui-gray-900. See the ais-components colors for details. (Link to our color page)

Opacity ​

opacity accepts a Tailwind opacity class. The default value is opacity-60.