Loaders are used to visually communicate processing.
Overview
Loaders show that something is loading, computing, or processing with a spinning visual.
Loader type's can be set as "determinate" or "indeterminate". As a good UX practice, "determinate" should be used whenever it is possible to relay the loading percentage.
Sample
Component comparison
Loader and Progress are similar in purpose but differ in appearance.
loading propertyBest practices

determinate or determinate-value when processing percentage is known and updates reliably.
indeterminate when the processing percentage is unknown or unpredictable. User trust can be diminished by inaccurate percentages such as those that stall, jump, or move backward.Accessibility
Loader must have an accompanying label property to provide context to assistive technologies. Add a concise description so users are able to interpret why the Loader is present.
API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| inline | inline | When | boolean | false |
| label | label | Specifies an accessible label for the component. | string | |
| scale | scale | Specifies the size of the component. | Scale | "m" |
| text | text | When not | string | "" |
| type | type | Specifies the component type. Use | "indeterminate" | "determinate" | "determinate-value" | "indeterminate" |
| value | value | The component's value. Valid only for | number | 0 |
Styles
| Name | Description |
|---|---|
| --calcite-loader-font-size | When |
| --calcite-loader-size | Specifies the component's width and height. |
| --calcite-loader-size-inline | --calcite-loader-size instead. Specifies the width and height of the component when set to inline. |
| --calcite-loader-spacing | Specifies the the component's padding. |
| --calcite-loader-progress-color-inline | When |
| --calcite-loader-text-spacing | When not |
| --calcite-loader-text-weight | When not |
| --calcite-loader-text-color | When not |
| --calcite-loader-progress-color | When not |
| --calcite-loader-track-color | Specifies the component's track color. |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |