Loader
The Loader component provides a reusable pattern for loader in the interface.
Size
Color
API
| Parameter | Default | Description |
|---|---|---|
|
componentElement
|
div | The tag for the component |
|
shape
|
circular | Visual shape for the loader (circular, linear) |
|
size
|
md | Size for the loader (xs, sm, md, lg, xl) |
|
color
|
black | black, white, secondary, primary |
|
text
|
Loading text |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-loader--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-loader--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-loader--color--secondary
|
var(--color--secondary) | color | - | Secondary |
|
--c-loader--color--surface-contrast
|
var(--color--surface-contrast) | color | - | Used for text and icons on surface backgrounds with less contrast. |