Spinner

A theme-aware spinner for indeterminate loading / pending feedback.

Preview#

Controls
import { Spinner } from "raft-ui";

<Spinner />

Sizes#

Current color#

Inline#

Syncing

API#WIP

PropTypeDefaultDescription
size"xs" | "sm" | "md" | "lg""sm"Ring diameter. Brutal scales the ring across all four steps (16px at sm, 32px at lg); elegant keeps a compact 14-18px ring.
variant"default" | "inverse""default"Use inverse on dark surfaces so the brutal ring keeps enough contrast.
aria-labelstring"Loading"Accessible label announced by screen readers.
renderReactElement | (props, state) => ReactElementBase UI render hook for changing the root element.
...propsHTMLAttributes<HTMLSpanElement>Native span attributes. Use className for color/positioning and data-icon inline placement.