React Shared Components

Interactive testing environment for react-shared components

Theme Playground

Current: Default

HollowDotsSpinner

Animated hollow dots loading indicator with customizable appearance.

Interactive Playground

Customize the HollowDotsSpinner properties and see the changes in real-time.

Examples

Default (3 Dots)

5 Dots

Large Dots

Fast Animation

Slow Animation

Single Dot

API Reference

PropTypeDefaultDescription
dotsNumnumber3Number of dots to display
dotSizenumber15Size of each dot in pixels
animationDurationnumber1000Animation duration in milliseconds
colorstring'currentColor'Border color of the dots
classNamestring''Additional CSS classes

Usage Notes

Animation

Each dot animates with a staggered delay (300ms * index) creating a wave effect. The animation uses CSS modules for styling.

Color Inheritance

By default, the spinner uses currentColor, allowing it to inherit the text color from its parent element.

Accessibility

The component includes proper ARIA attributes (role="status" and aria-label="Loading") for screen readers.

Sizing

The spinner automatically calculates its width based on the number of dots and their size, including horizontal margins.