Components · Feedback
Spinner
StableAdded v0.0.1
Animated loading indicator. Inherits color from context.
import { Spinner } from '@nexub/react';Playground
Props
<Spinner size="sm" />Examples
Sizes
Inside button
States
defaultsize="sm"size="md"size="xs"size="lg"size="xl"tone="neutral"tone="info"tone="success"tone="warning"tone="danger"tone="leap"tone="bookub"tone="payub"
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'xs' | 'lg' | 'xl' | 'md' | Diameter of the spinner. |
| label | string | — | Screen-reader accessible label. |
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'leap' | 'bookub' | 'payub' | 'founderub' | 'neutral' |
On iOS & Android: LoadingIndicator
@nexub/react-nativeAlpha
import { LoadingIndicator } from '@nexub/react-native';
<LoadingIndicator />Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Name | Spinner. | LoadingIndicator: the platform activity indicator in the primary colour. |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.