Skip to content

Components

Spinner

A busy indicator announced as a status.

Customize
Ombelle · light

Installation

Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.

pnpm dlx @ombelle-ui/cli@1.1.2 add spinner

Adds components/ui/spinner.tsx and installs react, clsx, tailwind-merge with lifecycle scripts disabled.

In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.

Usage

example.tsx
import { Spinner } from '@/components/ui/spinner'
export function Example(){return <p style={{ display: "inline-flex", alignItems: "center", gap: "0.5rem" }}><Spinner size="sm" /> Saving…</p>}

API and states

API
Spinner (size, aria-label)
Minimum states
Spinning, slowed under reduced motion, hidden inside a labelled control
Native basis
SVG with role="status"
Styles
Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.