<Stack gap="md">
<Loading message="Loading orders" />
<Stack direction="row" gap="md" align="center">
<Spinner size={20} label="Working" />
<BlockLoader label="Syncing" />
</Stack>
<BarLoader label="Uploading" />
</Stack>import { Loading, Spinner, BarLoader, BlockLoader, Stack } from "@dash/server";Prop | Type | Description |
|---|---|---|
| message | string | |
| showSpinner | boolean | |
| variant | "inline" | "page" | "bar" | `inline` (default) sits in the flow, `page` fills the space as a first load, `bar` is a thin progress bar fixed to the top of the screen. |
| delay | number | Milliseconds to wait before appearing (default: the framework's pending delay). |
Prop | Type | Description |
|---|---|---|
| size | number | |
| color | string | |
| label | string | Names the spinner for assistive technology; without it the spinner is decorative. |