Anchor Design System

Spinner

Spinner express an unspecified wait time or display the length of a process.

Installation

Usage

Note: Spinner adds Loading as aria-label by default. This is required for accessibility. You can change it by passing a label or aria-label prop.

Sizes

Colors

The spinner will be colored by 'currentColor' of its parent element. If you want to set the color of the spinner specifically, you can set the text color of the parent element or directly for the Spinner.

API

Properties

PropertyAttributeDescriptionTypeDefault
sizesizeWe recommend controlling the size of the Spinner with the parent container. Size option included for the sake of flexibility."large" | "medium" | "small" | "xlarge" | "xsmall"undefined
strokeWidthstroke-widthYou shouldn't change this from it's default but we've included the option for the sake of flexibilitynumber7

Dependencies

Used by

Graph

graph TD;
  anchor-button --> anchor-spinner
  style anchor-spinner fill:#f9f,stroke:#333,stroke-width:4px

On this page