Examples

Basic

Sizes

Inline

An inline spinner inherits its font-size, so its size will match the content around it.

Custom size

Documentation

Accessibility

AttributeApplied toOutcome
role="progressbar".pf-v6-c-spinnerIndicates to assistive technologies that this is an indeterminate progress indicator.
aria-label="Loading...".pf-v6-c-spinnerProvides an accessible name for the spinner. Note: one of aria-label or aria-labelledby is required.
aria-labelledby="[id of spinner label]".pf-v6-c-spinnerGives the spinner an accessible name by referring to the element that labels the spinner.
aria-describedby="[id of spinner description]".pf-v6-c-spinnerGives the spinner an accessible description by referring to the element that describes the spinner.

Note: If the spinner is showing that loading of a particular region of a page is in process, the author should use aria-describedby to point to the status, and set the aria-busy attribute to true on the region until it is finished loading.

Note: A live region must be present before changing its status in order for the change to be read.

Usage

ClassApplied toOutcome
.pf-v6-c-spinner<svg>Creates a spinner component. The default is an extra large spinner. Required
.pf-v6-c-spinner__path<circle>Creates a spinner circle component. Required
--pf-v6-c-spinner--diameter.pf-v6-c-spinnerModifies the value for --pf-v6-c-spinner--diameter declaration.

Modifiers

ClassApplied toOutcome
.pf-m-xs.pf-v6-c-spinnerCreates a extra-small spinner.
.pf-m-sm.pf-v6-c-spinnerCreates a small spinner.
.pf-m-md.pf-v6-c-spinnerCreates a medium spinner.
.pf-m-lg.pf-v6-c-spinnerCreates a large spinner.
.pf-m-xl.pf-v6-c-spinnerCreates an extra-large spinner.
.pf-m-inline.pf-v6-c-spinnerCreates an inline spinner.

CSS variables