import { Spinner } from "@/components/wensity/spinner";export function DefaultSpinner() {return <Spinner variant="default" label="Loading components" showLabel />;}
Spinner
A React loading spinner in arc, ring, dots, and pulse styles with a screen reader label, five tones, three sizes, and an overlay that blocks a region.
Examples
Practical examples and common states for the same installable component.
Default
Fast single-arc loading for compact inline states.
Ring
Layered ring with stronger loading presence.
import { Spinner } from "@/components/wensity/spinner";export function RingSpinner() {return <Spinner variant="ring" tone="success" label="Publishing changes" showLabel />;}
Dots
Conversational loading for AI and search flows.
import { Spinner } from "@/components/wensity/spinner";export function DotsSpinner() {return <Spinner variant="dots" tone="warning" label="Preparing response" showLabel />;}
Pulse
Ambient waiting state without continuous rotation.
import { Spinner } from "@/components/wensity/spinner";export function PulseSpinner() {return <Spinner variant="pulse" tone="danger" label="Waiting for webhook" showLabel />;}
Overlay
Blocking loader for a panel or workspace region.
import { SpinnerOverlay } from "@/components/wensity/spinner";export function LoadingOverlay() {return <SpinnerOverlay label="Refreshing billing" />;}
Overview
Spinner is a React and Tailwind CSS loading spinner, in Next.js or any React app, in four styles: a spinning arc, a ring of fading ticks, three bouncing dots, and a pulsing circle. Each one renders with role status and a Loading label for screen readers, which you can rename or show. Five tones and three sizes cover buttons, cards, and full panels, and SpinnerOverlay dims a region and makes its content inert while work runs. The CSS animations only play when reduced motion is off, so the indicator sits still while the label still reports loading.
Installation
Run the following command
pnpm dlx wensity@latest add spinner
npx wensity@latest add spinner
yarn dlx wensity@latest add spinner
bunx wensity@latest add spinner
Usage
Import Spinner from @/components/wensity/spinner and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { Spinner } from "@/components/wensity/spinner";export function SpinnerDemo() {return <Spinner label="Loading components" showLabel />;}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "ring" | "dots" | "pulse" | "default" | Which loading animation to render. |
size | "sm" | "md" | "lg" | "md" | Spinner diameter. |
tone | "neutral" | "brand" | "success" | "warning" | "danger" | "neutral" | Spinner colour. |
label | string | "Loading" | Accessible label announced while the spinner is visible. |
showLabel | boolean | false | Renders the label as visible text beside the spinner. |
Related primitives
Skeleton
React skeleton loading placeholders for text, avatars, cards, and tables, plus a custom block, with a soft shimmer that stops under reduced motion.
Progress
A React progress bar on Base UI with spring smoothed fills and an indeterminate sweep, plus circular, stepped, and stacked multi part bars.
Button
A React button component on Base UI with seven variants, from the solid default to ghost and link, four sizes, icon slots, and a built in loading state.
Toast
React toast notifications on Base UI in info, success, warning, error, and action styles, with swipe to dismiss, six positions, and a hook to fire them.
Related components

Liquid Loading Animation
A loader that fills with liquid to your progress, in a glass circle, square, or word.

Water Progress Bar
A progress bar that fills with water, its rippling front leaning as it runs.

Animated Loading Skeleton
An organic loading state instead of a spinner, with a slow aurora that breathes in the space where your content will land.

AI Orb
A near-black glass sphere with a violet rim that drifts while a model generates.