rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Spinner

Animated loading indicator for indeterminate wait states. Accessible with aria-label.

Examples

Sizes

Spinner at sm, md, and lg sizes — style driven by personality shape slider.

Colours

Brand, success, warning, and error spinner variants.

With text

Spinner combined with a loading label.

All styles

The six personality-driven spinner styles — move the shape slider to see the active one change.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Spinner } from "@rokle/components";
import { Spinner } from "@rokle/components";

export function Example() {
  return <Spinner />;
}

API Reference

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Spinner size.
labelstring"Loading"Accessible label for screen readers.