PatternFly

Spinner

A spinner is used to indicate to users that an action is in progress. For actions that may take a long time, use a progress bar instead.

Examples

Basic

Size variations

Custom size

Inline size

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus.

Second level

Curabitur accumsan turpis pharetra blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti.

Sometimes you need small text

Props

Spinner

*required
NameTypeDefaultDescription
aria-labelstringAccessible label to describe what is loading
aria-labelledBystringId of element which describes what is being loaded
aria-valuetextstring'Loading...'Text describing that current loading status or progress
classNamestring''Additional classes added to the Spinner.
diameterstringDiameter of spinner set as CSS variable
isInlineBetabooleanfalseIndicates the spinner is inline and the size should inherit the text font size. This will override the size prop.
size'sm' | 'md' | 'lg' | 'xl''xl'Size variant of progress.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v5-c-spinner--pf-v5-c-spinner--diameter
3.375rem
.pf-v5-c-spinner--pf-v5-c-spinner--Width
3.375rem
.pf-v5-c-spinner--pf-v5-c-spinner--Height
3.375rem
.pf-v5-c-spinner--pf-v5-c-spinner--Color
#06c
.pf-v5-c-spinner--pf-v5-c-spinner--m-sm--diameter
0.75rem
.pf-v5-c-spinner--pf-v5-c-spinner--m-md--diameter
1rem
.pf-v5-c-spinner--pf-v5-c-spinner--m-lg--diameter
1.5rem
.pf-v5-c-spinner--pf-v5-c-spinner--m-xl--diameter
3.375rem
.pf-v5-c-spinner--pf-v5-c-spinner--m-inline--diameter
1em
.pf-v5-c-spinner.pf-m-inline--pf-v5-c-spinner--diameter
1em
.pf-v5-c-spinner.pf-m-sm--pf-v5-c-spinner--diameter
0.75rem
.pf-v5-c-spinner.pf-m-md--pf-v5-c-spinner--diameter
1rem
.pf-v5-c-spinner.pf-m-lg--pf-v5-c-spinner--diameter
1.5rem
.pf-v5-c-spinner.pf-m-xl--pf-v5-c-spinner--diameter
3.375rem
svg.pf-v5-c-spinner--pf-v5-c-spinner--diameter
3.375rem
svg.pf-v5-c-spinner--pf-v5-c-spinner--AnimationDuration
1.4s
svg.pf-v5-c-spinner--pf-v5-c-spinner--AnimationTimingFunction
linear
svg.pf-v5-c-spinner--pf-v5-c-spinner--stroke-width
10
svg.pf-v5-c-spinner--pf-v5-c-spinner__path--Stroke
#06c
svg.pf-v5-c-spinner--pf-v5-c-spinner__path--StrokeWidth
10
svg.pf-v5-c-spinner--pf-v5-c-spinner__path--AnimationTimingFunction
ease-in-out
svg.pf-v5-c-spinner--pf-v5-c-spinner--m-sm--diameter
0.75rem
svg.pf-v5-c-spinner--pf-v5-c-spinner--m-md--diameter
1rem
svg.pf-v5-c-spinner--pf-v5-c-spinner--m-lg--diameter
1.5rem
svg.pf-v5-c-spinner--pf-v5-c-spinner--m-xl--diameter
3.375rem
svg.pf-v5-c-spinner.pf-m-sm--pf-v5-c-spinner--diameter
0.75rem
svg.pf-v5-c-spinner.pf-m-md--pf-v5-c-spinner--diameter
1rem
svg.pf-v5-c-spinner.pf-m-lg--pf-v5-c-spinner--diameter
1.5rem
svg.pf-v5-c-spinner.pf-m-xl--pf-v5-c-spinner--diameter
3.375rem

View source on GitHub