Skip to main content

Spinner

Custom spinners with different types and sizes are available.

Types

Use any of the available spinners by changing the type prop.

import { Spinner } from 'chic-ui';

<Spinner type='light' />
<Spinner type='primary' />
<Spinner type='secondary' />
<Spinner type='danger' />
<Spinner type='success' />
<Spinner type='warning' />
<Spinner type='info' />

Sizes

The size of the spinners can be changed by passing a number to the size prop.

import { Spinner } from 'chic-ui';
<Spinner type='success' size={65} />
<Spinner size={40} />

API

import { Spinner } from 'chic-ui';
NameTypeDefaultDescription
type'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'info' | 'light''light'Color of the spinner
size'small' | 'default' | 'large''default'Size of the spinner
classNamestringProvide external classnames to the component
styleReact.CSSPropertiesOverride default styling of the component