Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Spinner

A turning circle that says something is in progress.

Rendered by React 19.3.1

spinner.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/spinner.json

It also adds utils. The app needs its setup first: Installation.

Usage

The spinner is the status itself (role="status", labelled "Loading"); give it an aria-label that says what is loading. Classes set its size and color.

import { Spinner } from '@/components/ui/spinner'

Examples

Default

A spinner beside the text it explains.

Its preview and code are at the top of the page.

API reference

Spinner wraps no headless component of its own: its parts are elements with classes, and their props are the element's.