v1.0.8
Spinner
Experimental
This component is considered experimental. Reach out to the Spark team to find out more about what this means.
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
Prop | Type | Description |
---|---|---|
data? | DataAttributeMap | Sets data attributes for the element. |
size? | "xxsmall" | "xsmall" | The size of the nested radios. Default: |
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. |