datui
Color scheme

Feedback

Spinner

Indeterminate loading indicator that inherits the current text color.

import { Spinner } from "datui";

Playground

Loading…
<Spinner size="m" label="Loading…" />

Examples

Sizes and color

Loading…Loading…Loading…Loading…

Accessibility

  • Renders role="status" with a visually hidden label (default “Loading…”), so screen readers announce it.
  • Pass label={null} when a parent already announces the busy state; the spinner is then aria-hidden.
  • Under prefers-reduced-motion the rotation slows down; paused stops it entirely.

API

Spinner

Indeterminate loading indicator.

PropTypeDefaultDescription
classNamestring—
labelstringLoading…Accessible label. Pass `null` when a parent already announces the busy state.
pausedboolean—Pause the animation (e.g. for screenshots).
size"s" | "m" | "l" | "xl"—