Command Palette

Search for a command to run...

Components · Core component

Spinner

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

PropTypeDefaultDescription
classes{ circleStroke?: string; circleFill?: string; }—
onDarkbooleanfalse
sizeenumsm