Skip to content
nexubDesign System
v12.7.0

Components · Feedback

Spinner

StableAdded v0.0.1

Animated loading indicator. Inherits color from context.

import { Spinner } from '@nexub/react';
View as Markdown

Playground

Props

TSX
<Spinner size="sm" />

Examples

Sizes

Inside button

States

  • default
  • size="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

Props
PropTypeDefaultDescription
size'sm' | 'md' | 'xs' | 'lg' | 'xl''md'Diameter of the spinner.
labelstring—Screen-reader accessible label.
tone'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'leap' | 'bookub' | 'payub' | 'founderub''neutral'