docs/components/feedback/Spinner

Spinner

Loading spinner with size variants.

import { Spinner } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Small

<Spinner size="sm" />

Large

<Spinner size="lg" />

#Props

PropTypeDefaultDescription
sizeSpinnerSize'md'Size preset.
colorSpinnerColor'primary'Color variant.
labelstring'Loading'Accessible label for screen readers.
classstringAdditional CSS classes.
unstyledbooleanfalseRemove all default styling classes.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-border
  • --sk-duration-normal
  • --sk-spinner-border-width
  • --sk-spinner-color
  • --sk-spinner-track-color
  • --sk-text-muted
  • --sk-text-on-accent
  • --sk-text-secondary