🚀ReacUI is currently in Beta. We're actively improving it! ❣️

Spinner

A versatile spinner component for loading states

Installation

The Spinner component is part of the ReacUI library. Install the package to use it in your project.

npm install reacui

Import

Import the Spinner component into your React component.

import { Spinner } from 'reacui';

Spinner Sizes

The Spinner component comes in different sizes to fit your needs.

<Spinner size="sm" />
<Spinner size="md" />
<Spinner size="lg" />
<Spinner size="xl" />

Spinner Colors

Customize the color of your spinner to match your design.

<Spinner color="primary" />
<Spinner color="secondary" />
<Spinner color="white" />
<Spinner color="gray" />

API Reference

The following props are available for the Spinner component.

PropTypeDefaultDescription
sizestring'md'The spinner size: 'sm', 'md', 'lg', or 'xl'.
colorstring'primary'The spinner color: 'primary', 'secondary', 'white', or 'gray'.
classNamestring''Additional CSS classes to add to the spinner.