Overview
The Spinner component displays a circular loading animation to indicate that content is being loaded or processed. It’s useful for providing visual feedback during asynchronous operations.Basic Usage
Props
Whether the spinner is animating. Set to
false to stop the animation.Determines the color of the spinner. Available values:
basicprimarysuccessinfowarningdangercontrol- Use when displaying on high-contrast backgrounds
Controls the size of the spinner. Available values:
tinysmallmediumlargegiant
Custom style object to override default styling.
Examples
Different Sizes
Different Statuses
Loading Data Pattern
Conditional Animation
Theming
The Spinner component can be customized using Eva Design System theming. You can override colors, sizes, and animation properties in your custom theme.The
control status is specifically designed for use on high-contrast backgrounds and will automatically adapt to ensure visibility.Accessibility
- Consider adding accompanying text or labels to provide context for screen readers
- Use the
accessibilityLabelprop to describe what is loading - Ensure sufficient color contrast when using custom status colors
Related Components
- ProgressBar - For determinate loading states with percentage
- CircularProgressBar - For circular progress with percentage display
