The Spinner component is used to visually represent the loading state of a UI component.
Usage
TSX
import { Spinner } from '@console/nimbus-ui';Examples
Size
The Spinner component is available in two sizes, specify the size prop to create either a 'sm' or 'lg' variant.
On Dark
Use the onDark prop to change the spinner from primary to white. This enables us to control the theming of the Spinner.
API
| Prop | Type | Default | Description |
|---|---|---|---|
| classes | { circleStroke?: string; circleFill?: string; } | — | |
| onDark | boolean | false | |
| size | enum | sm |
Figma