Bloc UIBloc UI

Spinner

Loading indicator with preset sizes and custom sizing support.

$ npm install @bloc-ui/core

Preset sizes

Preset Sizes

xs · sm · md · lg · xl

Default

Uses size="md" when no size is provided.

Inline with text

Inline next to text for inline loading states.

Loading data...

Custom sizing

Custom Size via Inputs

Pass width and height inputs for any dimensions.

Custom Size via Class

Apply Tailwind or custom utility classes directly.

Theming

Custom Colour via Tailwind

Apply a single text-{color} class — the track is derived automatically.

Custom token

Override colour via CSS custom properties — works without Tailwind.