Skip to Content
Patternfly Logo

Spinner

Spinners are used to indicate to users that an action is in progress. For actions that may take a long time use a Progress Bar in place of a Spinner. Related design guidelines: Data loading

SpinnerExamplesPropsCSS Variables

Spinner

Examples

Basic

Size variations

Props

Spinner properties
NameTypeRequiredDefaultDescription
classNamestringNo''Additional classes added to the Spinner.
size'sm' | 'md' | 'lg' | 'xl'No'xl'Size variant of progress.
aria-valuetextstringNo'Loading...'Aria value text

CSS Variables

.pf-c-spinner--pf-c-spinner--AnimationDuration
1.5s
.pf-c-spinner--pf-c-spinner--AnimationTimingFunction
cubic-bezier(.77, .005, .315, 1)
.pf-c-spinner--pf-c-spinner--diameter
3.375rem
.pf-c-spinner--pf-c-spinner--stroke-width-multiplier
.1
.pf-c-spinner--pf-c-spinner--stroke-width
calc(3.375rem * .1)
.pf-c-spinner--pf-c-spinner--Width
3.375rem
.pf-c-spinner--pf-c-spinner--Height
3.375rem
.pf-c-spinner--pf-c-spinner--Color
#06c
.pf-c-spinner--pf-c-spinner--m-sm--diameter
0.625rem
.pf-c-spinner--pf-c-spinner--m-md--diameter
1.125rem
.pf-c-spinner--pf-c-spinner--m-lg--diameter
1.5rem
.pf-c-spinner--pf-c-spinner--m-xl--diameter
3.375rem
.pf-c-spinner--pf-c-spinner__clipper--Width
3.375rem
.pf-c-spinner--pf-c-spinner__clipper--Height
3.375rem
.pf-c-spinner--pf-c-spinner__clipper--after--BoxShadowColor
#06c
.pf-c-spinner--pf-c-spinner__clipper--after--Width
3.375rem
.pf-c-spinner--pf-c-spinner__clipper--after--Height
3.375rem
.pf-c-spinner--pf-c-spinner__clipper--after--BoxShadowSpreadRadius
calc(3.375rem * .1)
.pf-c-spinner--pf-c-spinner__lead-ball--after--BackgroundColor
#06c
.pf-c-spinner--pf-c-spinner__ball--after--Width
calc(3.375rem * .1)
.pf-c-spinner--pf-c-spinner__ball--after--Height
calc(3.375rem * .1)
.pf-c-spinner--pf-c-spinner__tail-ball--after--BackgroundColor
#06c
.pf-c-spinner.pf-m-sm--pf-c-spinner--diameter
0.625rem
.pf-c-spinner.pf-m-md--pf-c-spinner--diameter
1.125rem
.pf-c-spinner.pf-m-lg--pf-c-spinner--diameter
1.5rem
.pf-c-spinner.pf-m-xl--pf-c-spinner--diameter
3.375rem