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 has one state: turning. Under reduced motion the arc stops.

    State Visual change Tokens
    Turning The arc turns continuously period-spinner
    Reduced motion The arc stops None
    Size Value Token
    xs 12 px icon-size-xs
    sm 16 px icon-size-sm
    md 20 px icon-size-md
    lg 24 px icon-size-lg
    Shape An open arc of about 300° with round caps, no track None
    Stroke width 1/12 of the size None

    Values are shown for the selected brand; change the brand from the top bar.

    TokenSampleLight modeDark mode
    --bigbang-icon-size-xs12px12px12px12px12px12px
    --bigbang-icon-size-sm16px16px16px16px16px16px
    --bigbang-icon-size-md20px20px20px20px20px20px
    --bigbang-icon-size-lg24px24px24px24px24px24px
    --bigbang-color-text-subtle#404040#404040#404040#d4d4d4#d4d4d4#d4d4d4
    --bigbang-color-action-primary-default#146d83#171717#171717#77bacf#e5e5e5#e5e5e5
    --bigbang-period-spinner1s1s1s1s1s1s
    Interaction Property Duration token Easing token Reduced motion
    Turning A rotate loop (animate-spin) period-spinner (1000 ms) Linear The turn stops (reduce-motion:animate-none).

    Loops are used only in loading indicators. See Motion for the values.