Loading Indicator

View in Lexicon

The loading indicator shows the user that an external process, like a connection, is being executed.

installyarn add @clayui/loading-indicator
versionNPM Version
useimport LoadingIndicator from '@clayui/loading-indicator';
These animations are made using only CSS.

Loading Animation

This component received a breaking style update. Please see reverting to the Dotted Loading Animationfor instructions on how to revert it.

The loading-animation indicator is to be used with small components such as badges, buttons, inputs, tables rows, etc. This component takes on the currentColor and font-size.

Snippet

Loading Animation Squares

The loading-animation-squares indicator uses 2 square shapes taken from the Liferay logo. It helps us include some details from the brand in our product interfaces. Use this indicator only for bigger components such as cards, modals, sidebars, dashboards, etc. This component takes on the currentColor and the current font-size.

Snippet

Sizes

The Loading Animation components ship with four sizes. The Sass map, $loading-animation-sizes, accepts additional maps to output more sizes if needed.

Extra Small

The modifier class loading-animation-xs forces the loading animation indicator size to be 10px.

Snippet

Small

The modifier class loading-animation-sm forces the Loading Animation indicator size to be 16px.

Snippet

Medium

The modifier class loading-animation-md forces the Loading Animation indicator size to be 32px.

Snippet

Large

The modifier class loading-animation-lg forces the Loading Animation indicator size to be 64px.

Snippet

Variations

The Loading Animation component has three variants, primary, secondary, and light. The Sass map, $loading-animation-palette, accepts additional maps to output more variants if needed.

Primary

The modifier class loading-animation-primary forces the Loading Animation indicator color to be $primary.

Snippet

Secondary

The modifier class loading-animation-secondary forces the Loading Animation indicator color to be $secondary.

Snippet

Light

The modifier class loading-animation-light forces the Loading Animation indicator color to be white.

Snippet

Compositions

Button

Snippet

Reverting to the Dotted Animation

Copy and paste the code below into your _clay_variables.scss file.

Snippet

Edit this page on GitHub

Contributors

Matuzalém Teles

Last edited May 9, 2025 at 6:15:38 AM