Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    Spinner

    An open arc that turns while something loads and reports the state to screen readers.

    Storybook
    Storybook
    Source
    Source

    Spinner renders an element with role="status"; the visually hidden label is the content of that region. The arc is hidden with aria-hidden. With decorative, the whole element is hidden.

    Spinner takes no focus and has no keyboard interaction.

    It takes no focus. Do not move focus to the Spinner while loading; keep it on the control that started the action.

    Example Output
    Default “Loading”, as a polite announcement
    label="Saving" “Saving”
    decorative Nothing

    The arc colour has at least 3:1 contrast on the background. Use the subtle tone only next to text.

    Criterion How Spinner meets it What the product team does
    1.4.11 Non-text contrast Arc at 3:1. Do not place the arc on a low-contrast background.
    2.3.3 Animation from interactions The turn stops under reduced motion. Do not replace the turn with another animation.
    4.1.3 Status messages role="status" and a localised label. Say what is loading with label.