Skip to content

CdsLoader

Deprecated

A circular indeterminate loading indicator — a spinning ring without progress. It shows that the data is still loading: as an inline element, as an overlay above a container or above the whole page.

Storybook GitLab Figma
Test coverage: 100% — good coverage
API in specs
5 / 5 props, events, slots and exposed members with a test
Test cases
8 unit · 0 browser
Code coverage
100% lines · 100% branches measured in v4.0.0-alpha.13
A11y (axe)
1 recommendations in 2 stories measured in v4.0.0-alpha.11

The component is deprecated and will be removed in future versions. Use CdsProgressCircle: it covers both indeterminate loading and progress.

Variations ​

Sizes ​

The size prop sets the diameter of the indicator: from xs to xl or a number in pixels. The default size is md.

Overlay ​

The overlay prop expands the indicator to the full screen and dims the content underneath. Add fixed so that the overlay takes the nearest container with position: relative instead of the whole page. The description prop describes what is going on for screen readers (aria-label).

API ​

Props

NameTypeDefaultDescription
descriptionstring | undefined—Description that best explains the loading state (aria-label)
fixedboolean | undefined—Pins the loader to the current container
overlayboolean | undefined—Renders a fixed full-screen loader
sizenumber | "xs" | "sm" | "md" | "lg" | "xl" | undefined'md'Size of the component
themestring | undefined—Component theme