Components

Spinner

A small loading indicator that inherits the surrounding text color.

Inside a Button

Usage

import { Spinner } from '@onersoft/design-system'

<Spinner />
<Spinner size="lg" />

Spinner exposes its loading state via aria-label (defaults to 'Loading'). Pass label="" when the parent already announces the loading state.

Props

PropTypeDefault
size'sm' | 'md' | 'lg''md'
labelstring'Loading'

On this page