SpinnerReady

Spinner component is used to indicate users that their action is being processed. You can customize the size and color of the spinner with the provided properties.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-spinner size="xl"></nord-spinner>

Properties

PropertyAttributeDescriptionTypeDefault
sizesize

The size of the spinner.

"xs" | "s" | "m" | "l" | "xl" | "xxl""m"
colorcolor

The color of the spinner. Can accept any valid CSS color value, including custom properties. Takes precedence over the --n-spinner-color CSS custom property.

string | undefinedundefined
labellabel

An accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.

string | undefinedundefined

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.

PropertyDescriptionDefault
--n-spinner-color

Controls the color the spinner.

var(--n-color-accent)

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use for indicating users that their action is being processed.
  • Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.

Don’t

  • Don’t use to show progress. Favor a progress bar instead.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Troubleshooting

If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.