Welcome to Vanilla Breeze
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
CSS-only loading spinner for indicating async operations. Supports sizes, colors, and inline usage.
The <loading-spinner> element displays a CSS-only animated spinner for loading states. It requires no JavaScript and works as a simple custom element with CSS styling.
<loading-spinner aria-label="Loading"></loading-spinner>
| Attribute | Values | Default | Description |
|---|---|---|---|
data-size |
xs, s, m, l, xl |
m |
Spinner size. |
data-variant |
primary, success, warning, error |
inherit | Color variant. |
data-overlay |
boolean | — | Centers spinner over its parent with a translucent backdrop. |
aria-label |
string | — | Required for screen readers (e.g., “Loading”). |
Five size presets from extra-small to extra-large. The spinner inherits currentColor by default.
<loading-spinner data-size="xs" aria-label="Loading"></loading-spinner><loading-spinner data-size="s" aria-label="Loading"></loading-spinner><loading-spinner data-size="m" aria-label="Loading"></loading-spinner><loading-spinner data-size="l" aria-label="Loading"></loading-spinner><loading-spinner data-size="xl" aria-label="Loading"></loading-spinner>
<loading-spinner data-variant="primary" aria-label="Loading"></loading-spinner><loading-spinner data-variant="success" aria-label="Loading"></loading-spinner><loading-spinner data-variant="warning" aria-label="Loading"></loading-spinner><loading-spinner data-variant="error" aria-label="Loading"></loading-spinner>
Use a small spinner inline with text or inside buttons.
<p> <loading-spinner data-size="s" aria-label="Loading"></loading-spinner> Loading your data...</p>
<button disabled> <loading-spinner data-size="s" aria-label="Loading"></loading-spinner> Processing...</button>
| Property | Default | Description |
|---|---|---|
--spinner-size |
1.5em |
Overall spinner dimensions. |
--spinner-width |
0.2em |
Border/track thickness. |
--spinner-color |
currentColor |
Active arc color. |
--spinner-track |
20% of color | Background track color. |
--spinner-speed |
0.7s |
Rotation duration. |
loading-spinner { --spinner-size: 3em; --spinner-width: 0.3em; --spinner-color: oklch(55% 0.2 260); --spinner-speed: 1s;}
aria-label="Loading" for screen reader announcement.prefers-reduced-motion: reduce.<progress> — Native progress bar with circular ring mode