Loader

canon

The lying-eight loader for short waits — buttons, dialogs, inline pending; takes its colour from `color`.

Used in 8 files · 6 areas · 8× — components/AppShell, components/clen-tymu, components/mail, components/notes, components/notifications, pages/SpojitPage

Default

Načítám
components--loader--defaultOpen standalone ↗Code

Variants

Načítám
on its own — with a label, so the wait is announced too
Ukládám změny…
with a sentence beside it — the label goes to the text, the loader stays silent
Odesílám
on an accent surface — the stroke follows `color`, nothing to set
components--loader--variantsOpen standalone ↗Code

Sizes

--linf-w: 20px — inside dense rows
28px (default) — buttons, inline waits; this is the size you almost always want
--linf-w: 40px — a panel that is waiting as a whole
small p h2
⚠ the size does NOT follow the surrounding font — these three sit in --small, --p and --h2 and are all 28px wide
components--loader--sizesOpen standalone ↗Code

States

click Save — the button swaps its label for the loader, stays the same width and blocks a second click
Uloženo
idle — no loader at all; a wait shorter than a blink should draw nothing
components--loader--statesOpen standalone ↗Code

Composition

Připravuji náhledPřipravuji náhled…
components--loader--compositionOpen standalone ↗Code