Skip to content

Spin

What component has ​

Roles and attributes ​

Roles & attributes
AttributeUsage
aria-label="Loading…"Sets an accessible name for the element.

Considerations for developers ​

  • Place Spin inside a container with role="status" and aria-live="polite" attributes for the screen reader to announce the start of the loading process (example).
  • If there's more than one Spin in a Table, a Card, or another container, and they can start or finish loading simultaneously, add the aria-busy="true" attribute to the container and set it to false when all items have finished loading. This ensures the user isn't repeatedly notified about the loading of each element.

Resources ​

Other recommendations ​

Find more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.