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
| Prop | Type | Default |
|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' |
label | string | 'Loading' |