Loading
import { Loading } from "@surfaces-ui/components";
Says what is being waited for, with something that moves while it is: a small chart beside the words, or above them a card that sketches a page. A live region, so the words are read out; a wait under a fifth of a second shows nothing. The motion is decoration and stands still where the system asks for less of it. Put aria-busy on what is being loaded.
Props
| Prop | Type | Required | What it is |
|---|---|---|---|
label | string | yes | What is being waited for: "Opening the report…". |
size | "inline" \ | "page" | |
cards | integer | With size page: how many cards, fanned out when there is more than one. Defaults to 1. | |
chart | "stacked" \ | "scatter" \ | "gantt" \ |
Parts the host supplies
Props that take code. Each is optional unless marked; the component leaves out what it needs it for.
picture: Your own picture. Drawn in place of the chart or the card, such asMovingMarkor a product's own.
Example
<Loading label="Opening the report…" size="page" />