Bonusway design system

Feedback

Spinner

An indeterminate wait, where the duration and the resulting layout are both unknown.

import Spinner from '@/components/ui/Spinner';

Source: src/components/ui/Spinner.tsx

Examples

Sized with utilities

It inherits colour and takes its size from the classes you give it.

Props

<Spinner> props

PropTypeDefaultDescription
classNamestring''—

Accessibility

  • Decorative on its own. The region it sits in should be aria-busy, and the accompanying text is what actually gets announced.

Usage

Do

  • Pair it with text — “Checking…” — so the wait has a reason.

Don’t

  • Don’t use it where the shape of the result is known; a Skeleton avoids the layout jump.
  • Don’t use it for a determinate operation; that is Progress.

Tämä verkkosivusto käyttää evästeitä

Käytämme evästeitä parantaaksemme käyttökokemustasi sivustollamme ja mukauttaaksemme sinulle tarjoamaamme sisältöä. Tärkeät evästeet ovat välttämättömiä jotta palvelumme toimii oikein. Jos suostut siihen, että keräämme tietoja sinusta käyttämällä välttämättömiä evästeitä ja markkinointievästeitä, valitse "Hyväksy kaikki". Voit aina muuttaa valintaasi evästeasetuksista.

Evästeasetukset