Spinner

Use Spinner to show users that an action is in progress.

  • @primer/react@37.5.0
  • Alpha
  • Not reviewed for accessibility

Import

import {Spinner} from '@primer/react'

Examples

View in Storybook

Props

Spinner

NameDefaultDescription
size
'small' | 'medium' | 'large'

Sets the width and height of the spinner.

srText
Loadingstring | null

Sets the text conveyed by assistive technologies such as screen readers. Set to null if the loading state is displayed in a text node somewhere else on the page.

aria-labelDeprecated
string

Sets the text conveyed by assistive technologies such as screen readers.

data-*
string
sx
SystemStyleObject
Navigated to Spinner