v1.0.8

Spinner

Installation

Install yarn add @spark-web/spinner
Source GitHub.com
Bundle unpkg.com

Spinner indicates to users that their request is in progress. In most cases you should use the loading prop on a Button instead of using this component directly.

Examples

Tones

The appearance of Spinner can be customised with the tone prop.

Defaults to primary.

Image of a partial circle indicating "loading".Image of a partial circle indicating "loading".Image of a partial circle indicating "loading".Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".
Image of a partial circle indicating "loading".

Size

Spinners available in two size: xxsmall and xsmall.

Defaults to xsmall.

Image of a partial circle indicating "loading".Image of a partial circle indicating "loading".

Props

Spinner

PropTypeDescription

data?

DataAttributeMap

Sets data attributes for the element.

size?

"xxsmall" | "xsmall"

The size of the nested radios.

Default: "xxsmall"

tone?

"neutral" | "muted" | "link" | "disabled" | "fieldAccent" | "placeholder" | "accent" | "primary" | "primaryHover" | "primaryActive" | "secondary" | "secondaryHover" | "secondaryActive" | "caution" | "critical" | "info" | "positive"

Provide a tone to influence elements of the field, and its input.

© 2023 Brighte Capital Pty Ltd