Skip to main content
Urbicon UI
source

Spinner

Loading indicators with multiple animation styles, semantic colors, and configurable speed.

Loading...
Loading...
Loading syntax highlighting...

01 Examples

Row-level loading

Show progress on a single row while the rest of the list stays interactive — the canonical pattern for async row actions in tables and lists.
design-tokens.md Synced
components.tsx
Syncing components.tsx
accessibility-audit.md Queued
Loading...
Loading syntax highlighting...

Lazy-load indicator

Place a spinner at the end of a paginated list to signal that more content is being fetched.
  • Item 1 — Loaded
  • Item 2 — Loaded
  • Item 3 — Loaded
Loading...
Loading more…
Loading...
Loading syntax highlighting...

Color inheritance

Use `intent='current'` so the spinner picks up the surrounding text color via `currentColor` — ideal inside coloured surfaces, badges, or alerts where a fixed intent would clash.
Loading...
Deploying
Loading...
Retrying
Loading...
Rolling back
Loading...
Loading syntax highlighting...

02 Customization

Content Loading Overlay

Frosted glass overlay with centered spinner for in-place content loading.
Loading...

Loading content…

Loading...
Loading syntax highlighting...

Status Pipeline

Spinners as part of a multi-step processing flow.
Files uploaded Done
Loading...
Processing data… Active
3
Deploy to production Pending
Loading...
Loading syntax highlighting...

Inline with Button

Button's built-in loading state includes an inline spinner.
Loading...
Loading syntax highlighting...

Slot Overrides

Use slotClasses to restyle individual parts without unstyled mode.
Loading...
Loading...
Loading...
Loading...
Loading syntax highlighting...

Fully Custom (unstyled)

Drop all defaults and build a completely unique indicator.
Syncing
Connecting
Analyzing
Loading...
Loading syntax highlighting...

03 Accessibility

Screen Reader

Uses role="status" with aria-label from the label prop (defaults to "Loading…"). The aria-live="polite" region announces loading state without interrupting the user.

Visibility

When visible={false}, the spinner is removed from the DOM entirely — no visual output and no accessibility tree entry.

Reduced Motion

All animations (spin, bounce, pulse, bars) respect prefers-reduced-motion: reduce via Tailwind's motion-reduce: variant. In reduced-motion mode the spinner still renders statically to indicate loading.

Print

Spinners are hidden from print output via a @media print rule.

04 API Reference

13 props
13 props

No matching properties

No matching properties

05 Installation

Import

Loading...
Loading syntax highlighting...