Reference index

Components

Spinner

Ink square outline that turns while loading; labelled status, still under reduced motion.

Preview

Fetching the latest edition

Install

bash

npx shadcn add @eloquent/spinner

Usage

tsx

import { Spinner } from "@/components/ui/spinner";

<Spinner label="Loading" />

States

StateTreatment
Motion allowedSquare turns (motion-safe:animate-spin)
prefers-reduced-motion: reduceStatic gapped square

Keyboard

This component is not interactive. It is not a tab stop, so Tab skips it.

KeyAction
TabSkips it; not a tab stop

Vietnamese

Đang lấy số báo mới nhất

Ink adaptation

Upstream's round Lucide Loader2 icon becomes a square ink outline with a gap. It turns only under motion-safe:; under prefers-reduced-motion the gapped square stays still and the label still announces.