<!-- generated by scripts/gen-docs.mjs from docs/system/skeleton.md. Edit the source and rerun. -->
# Skeleton

## Description
Holds the place of content that is still on its way, so the page does not jump when it arrives. A line stands in for one line of text and a block stands in for a picture, a chart or an avatar.

`import { Skeleton } from "@/components/cobalt/ui/skeleton"`, source `registry/cobalt/ui/skeleton.tsx`, status `ready`.
Foundation: `shadcn skeleton (base-luma, base)`. Traps checked: `trap/loading-layout-shift`, `trap/reduced-motion-ignored`, `trap/loop-offscreen`, `trap/motion-linear`, `trap/illustration-announced`, `trap/live-region-double`, `trap/demo-on-timers`, `trap/loading-label-swap` (n/a: it has no label; the owner carries `aria-busy`), `trap/color-only-status` (n/a: it carries no status of its own), `trap/loader-small-dots` (n/a: a bar, no dots).

### Foundation
| Given by the foundation | Added by the team |
|---|---|
| A `div` with the `animate-pulse` opacity loop, a rounded corner and a grey fill, sized by `className` | A `span`, so a skeleton can sit inside a `p`; `aria-hidden="true"`, so a screen reader skips the bars; the `shape` prop. A line (the default) is a `skeleton-line` span that takes its parent's line height (`1lh`), draws its bar at `0.6lh` in the middle with a `rounded-sm` (6px) corner, and holds an invisible zero-width character so it shares the text baseline; you give it only a width. A block takes its whole size and corner from `className` and defaults to `rounded-lg` (10px). The fill is `bg-foreground/8`, not the stock accent fill. The bar stays clear for the slow-wait delay, `SPINNER_DELAY_MS` (250ms) from `registry/cobalt/lib/motion.ts`, the same moment `useSlowWait` says yes, then fades in over `--t-fade` through `@starting-style`, and the pulse starts once it is in, at 400ms; both delays are inline styles read from that one constant, so a host that gates the bars with `useSlowWait` and a host that mounts them at once show them at the same moment; `motion-reduce:animate-none` stops the pulse when you ask for less motion |

## Examples
A list and a card on their first load, then the same boxes filled, and blocks for pictures. The docs frame's Replay remounts the list and the card, so their first load can be watched again; nothing in the examples is there only to replay them.

Real uses, 1 call site (`rg -n "<Skeleton\b" app docs/system/examples --glob '!docs/system/examples/skeleton/*'`):
- The showcase's example frame, a block as the `Suspense` fallback while an example's module loads, 36px by 160px, `app/pages/component.tsx:89`.

Uses inside the registry and the examples, which other components build on (planned as product uses once the first screen lands on the system):
- The data table's first-load rows, a placeholder per cell in the column's shape, `registry/cobalt/ui/data-table.tsx:381-386`: a line at a share of the cell that varies by row, a shorter one for a figure, blocks with a tag's corner for tags, a round block or a flag's box beside a line; `docs/system/examples/data-table/state-pending.tsx` shows them on its first load, after the slow-wait delay, held at least 400ms (`registry/cobalt/ui/data-table.tsx:1574-1577`).
- The slow-wait example, a block that appears only once the wait is worth admitting to, `docs/system/examples/use-slow-wait/default.tsx:32` (the examples folder does not count).

### Example files
| File | Covers | Caption |
|---|---|---|
| `docs/system/examples/skeleton/default.tsx` | default | The list's first load: the bars stay clear for 250ms, so a quick answer shows none, then hold the rows' own boxes until the rows fade in |
| Not applicable: default.tsx shows the line, the default shape | shape=line | A bar the height of the text, given only a width |
| `docs/system/examples/skeleton/shape-block.tsx` | shape=block | A list's first load with a block the size and corner of each avatar, beside a line where each name will go |
| Not applicable: pulsing is the rest state, shown in default.tsx and in-card.tsx while they load, under `(prefers-reduced-motion: no-preference)` | state:pulsing | The 2s opacity loop |
| Not applicable: still is reached with the OS setting on any example | state:still | The same bar, not pulsing |
| `docs/system/examples/skeleton/in-card.tsx` | composition:Card | A card's first load, then its facts at the same size; the terms are known at once, so only the values wait |

The list and the card run a real first load: a stand-in fetch answers after 1200ms, and a failed load shows Empty with a retry in the content's place, the list's at the list's height. Once the bars show they stay at least 400ms (`useSlowWait`), and the text fades in over `--t-fade` where its bar was. A skeleton is for a first load only: a list that already shows its rows keeps them, dimmed through `ListBody`, and never goes back to bars, which is what blanked the list for 150 to 240ms before. The height is the same loading and loaded, measured 182px for the list and 206px for the card.

Example: The list's first load: the bars stay clear for 250ms, so a quick answer shows none, then hold the rows' own boxes until the rows fade in (`docs/system/examples/skeleton/default.tsx`)

```tsx
import { useCallback, useEffect, useRef, useState } from "react";

import { Empty, EmptyAction, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/cobalt/ui/empty";
import { ListBody } from "@/components/cobalt/ui/list-body";
import { Skeleton } from "@/components/cobalt/ui/skeleton";
import { useSlowWait } from "@/lib/cobalt/use-slow-wait";

type Fund = { name: string; manager: string; assets: string };

const funds: Fund[] = [
  { name: "Harbour Large Cap Core", manager: "Harbour Capital", assets: "$4.8B" },
  { name: "Northgate Credit Opportunities", manager: "Northgate Partners", assets: "$2.1B" },
  { name: "Calder Global Equity", manager: "Calder Investment Management", assets: "$1.4B" },
];
// Bar widths close to the text each one stands for.
const widths = [
  ["w-44", "w-28"],
  ["w-56", "w-32"],
  ["w-40", "w-48"],
];
// Text fades in where its bar was, over the fade time.
const arrive = "transition-opacity duration-fade starting:opacity-0";

// Stands in for your API call. It answers after 1200ms, and fails while the browser is offline or the
// address has ?network=offline.
const fetchFunds = () =>
  new Promise<Fund[]>((resolve, reject) =>
    setTimeout(() => {
      const offline = !navigator.onLine || new URLSearchParams(location.search).get("network") === "offline";
      if (offline) reject(new Error("offline"));
      else resolve(funds);
    }, 1200),
  );

export default function Example() {
  const [rows, setRows] = useState<Fund[] | null>(null);
  const [pending, setPending] = useState(true);
  const [failed, setFailed] = useState(false);
  const latest = useRef(0);
  // A skeleton is for a first load only: this list has nothing to show until its rows arrive.
  const load = useCallback(() => {
    const id = ++latest.current;
    setPending(true);
    fetchFunds().then(
      (data) => {
        if (id !== latest.current) return;
        setRows(data);
        setFailed(false);
        setPending(false);
      },
      () => {
        if (id !== latest.current) return;
        setFailed(true);
        setPending(false);
      },
    );
  }, []);
  useEffect(load, [load]);
  // Once the wait passes 250ms the bars show, and they stay at least 400ms, so they never flash.
  const slow = useSlowWait(pending && !failed);
  const bars = rows === null || slow;
  // A retry keeps the failure on screen, dimmed once the wait is long enough to admit to.
  const retrying = useSlowWait(pending && failed);
  return (
    <section aria-labelledby="largest-funds" className="flex w-full max-w-md flex-col gap-3">
      <h3 id="largest-funds" className="text-base font-semibold">
        Largest funds
      </h3>
      {/* The failure takes the list's place at its height, so nothing below moves. */}
      <div className="grid *:col-start-1 *:row-start-1">
        <ul aria-busy={bars} className={`flex flex-col rounded-2xl bg-card px-4 ${failed ? "invisible" : ""}`}>
          {(rows ?? funds).map((fund, i) => (
            <li key={fund.name} className="flex items-center gap-4 border-t border-border py-3 first:border-t-0">
              <div className="flex min-w-0 flex-1 flex-col">
                <p className="truncate text-sm font-medium">
                  {bars ? <Skeleton className={widths[i]?.[0]} /> : <span className={arrive}>{fund.name}</span>}
                </p>
                <p className="truncate text-xs text-muted-foreground">
                  {bars ? <Skeleton className={widths[i]?.[1]} /> : <span className={arrive}>{fund.manager}</span>}
                </p>
              </div>
              <p className="text-sm font-medium tabular-nums">
                {bars ? <Skeleton className="w-12" /> : <span className={arrive}>{fund.assets}</span>}
              </p>
            </li>
          ))}
        </ul>
        {failed && (
          <ListBody busy={retrying} className="self-center">
            <Empty reason="error">
              <EmptyHeader>
                <EmptyTitle>The funds did not load</EmptyTitle>
                <EmptyDescription>Check your connection and try again.</EmptyDescription>
              </EmptyHeader>
              <EmptyContent>
                <EmptyAction onClick={load}>Try again</EmptyAction>
              </EmptyContent>
            </Empty>
          </ListBody>
        )}
      </div>
    </section>
  );
}
```

Example: A card's first load, then its facts at the same size; the terms are known at once, so only the values wait (`docs/system/examples/skeleton/in-card.tsx`)

```tsx
import { useEffect, useState } from "react";

import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/cobalt/ui/card";
import { Empty, EmptyAction, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/cobalt/ui/empty";
import { Skeleton } from "@/components/cobalt/ui/skeleton";
import { useSlowWait } from "@/lib/cobalt/use-slow-wait";

type Fund = { name: string; filed: string; facts: [string, string][] };

const fund: Fund = {
  name: "Harbour Large Cap Core",
  filed: "From the filing of Aug 29.",
  facts: [
    ["Net assets", "$4.8B"],
    ["Expense ratio", "0.42%"],
    ["Holdings", "186"],
  ],
};

// Text fades in where its bar was, over the fade time.
const arrive = "transition-opacity duration-fade starting:opacity-0";

// Stands in for your API call. It answers after 1200ms, and fails while the browser is offline or the
// address has ?network=offline.
const fetchFund = () =>
  new Promise<Fund>((resolve, reject) =>
    setTimeout(() => {
      const offline = !navigator.onLine || new URLSearchParams(location.search).get("network") === "offline";
      if (offline) reject(new Error("offline"));
      else resolve(fund);
    }, 1200),
  );

export default function Example() {
  const [data, setData] = useState<Fund | null>(null);
  const [failed, setFailed] = useState(false);
  const [run, setRun] = useState(0);
  useEffect(() => {
    let live = true;
    setFailed(false);
    fetchFund().then(
      (next) => {
        if (live) setData(next);
      },
      () => {
        if (live) setFailed(true);
      },
    );
    return () => {
      live = false;
    };
  }, [run]);
  const loading = data === null && !failed;
  // Once the wait passes 250ms the bars show, and they stay at least 400ms, so they never flash.
  const slow = useSlowWait(loading);
  const bars = loading || slow;
  if (failed)
    return (
      <Card className="w-full max-w-sm">
        <CardContent>
          <Empty reason="error" align="start">
            <EmptyHeader>
              <EmptyTitle>The fund did not load</EmptyTitle>
              <EmptyDescription>Check your connection and try again.</EmptyDescription>
            </EmptyHeader>
            <EmptyContent>
              {/* A retry is the card's first load again, since nothing arrived. */}
              <EmptyAction onClick={() => setRun(run + 1)}>Try again</EmptyAction>
            </EmptyContent>
          </Empty>
        </CardContent>
      </Card>
    );
  return (
    <Card aria-busy={bars} className="w-full max-w-sm">
      <CardHeader>
        <CardTitle>{data && !bars ? <span className={arrive}>{data.name}</span> : <Skeleton className="w-48" />}</CardTitle>
        <CardDescription>
          {data && !bars ? <span className={arrive}>{data.filed}</span> : <Skeleton className="w-40" />}
        </CardDescription>
      </CardHeader>
      {/* The terms are known before the answer, so only the values wait. */}
      <CardContent>
        <dl className="flex flex-col gap-3">
          {fund.facts.map(([term, detail]) => (
            <div key={term} className="flex items-baseline justify-between gap-4">
              <dt className="min-w-0 text-muted-foreground wrap-anywhere">{term}</dt>
              <dd className="shrink-0 font-medium tabular-nums whitespace-nowrap">{bars ? <Skeleton className="w-12" /> : <span className={arrive}>{detail}</span>}</dd>
            </div>
          ))}
        </dl>
      </CardContent>
    </Card>
  );
}
```

## Variants

### shape
- `line` (default): one line of text. A `span` with the `skeleton-line` utility. Put it inside the element that will hold the text and give it only a width. It takes that element's line height and draws the bar at 60 percent of it, so the text replaces it with no change in height. Used at 2 example files (`docs/system/examples/skeleton/default.tsx`, `docs/system/examples/skeleton/in-card.tsx`) and the data table's cells.
- `block`: a picture, a chart or an avatar. It takes its whole size and corner from `className`, `rounded-lg` unless you pass another, such as `rounded-full` for an avatar. Used at 1 call site (`app/pages/component.tsx:89`) and the slow-wait example.

Example: A list's first load with a block the size and corner of each avatar, beside a line where each name will go (`docs/system/examples/skeleton/shape-block.tsx`)

```tsx
import { useEffect, useState } from "react";

import { Avatar, AvatarFallback, AvatarImage } from "@/components/cobalt/ui/avatar";
import { Skeleton } from "@/components/cobalt/ui/skeleton";
import { useSlowWait } from "@/lib/cobalt/use-slow-wait";

type Member = { id: string; name: string; photo: string | null };

const members: Member[] = [
  { id: "maya", name: "Maya Jacobsen", photo: "/photos/portrait-2.webp" },
  { id: "gwen", name: "Gwen Holloway", photo: "/photos/portrait-1.webp" },
  { id: "kira", name: "Kira Jensen", photo: null },
];
// Line widths close to the names each one stands for.
const widths = ["w-28", "w-28", "w-24"];
// Text fades in where its bar was, over the fade time.
const arrive = "transition-opacity duration-fade starting:opacity-0";

// Stands in for your API call. It answers after 1200ms; the list shows the bars until then.
const fetchMembers = () => new Promise<Member[]>((resolve) => setTimeout(() => resolve(members), 1200));

export default function Example() {
  const [list, setList] = useState<Member[] | null>(null);
  useEffect(() => {
    let live = true;
    fetchMembers().then((data) => {
      if (live) setList(data);
    });
    return () => {
      live = false;
    };
  }, []);
  // Once the wait passes 250ms the bars show, and they stay at least 400ms, so they never flash.
  const slow = useSlowWait(list === null);
  const bars = list === null || slow;
  return (
    <ul aria-busy={bars} aria-label="Members" className="flex w-full max-w-xs flex-col gap-3">
      {(list ?? members).map((member, i) => (
        <li key={member.id} className="flex items-center gap-3">
          {bars ? (
            // An avatar is round, so its block is too.
            <Skeleton shape="block" className="size-8 rounded-full" />
          ) : (
            <Avatar decorative className={arrive}>
              {member.photo && <AvatarImage src={member.photo} />}
              <AvatarFallback />
            </Avatar>
          )}
          <p className="text-sm">
            {bars ? <Skeleton className={widths[i]} /> : <span className={arrive}>{member.name}</span>}
          </p>
        </li>
      ))}
    </ul>
  );
}
```

## States
| State | Trigger | What the user can do | Shown by, besides color | Checked by |
|---|---|---|---|---|
| waiting | the first 250ms after mount | wait | nothing: the bar is transparent, so an answer inside the slow-wait delay shows no grey flash | test |
| pulsing | render under `(prefers-reduced-motion: no-preference)`, after the wait | wait | the bar at the content's size, its opacity breathing; the owner's `aria-busy` | screenshot |
| still | render under `(prefers-reduced-motion: reduce)` | wait | the same bar at full opacity, nothing moving | by hand |

### State precedence
- Pulsing and still: still wins. The media query drops the animation and the bar stays at full opacity.
- Waiting and still: waiting wins for the first 250ms. The bar then fades in and holds still, since an opacity fade is kept under reduced motion.

### Motion
| Trigger | Kind | Preset | Properties | Reduced motion |
|---|---|---|---|---|
| mount | announce | `SPINNER_DELAY_MS` (250ms) delay, then `--t-fade` on `ease-out` (`--curve`) | opacity, 0 to 1 | the same fade |
| after the fade, while the content loads | announce | `animate-pulse` from 400ms, Tailwind's 2s opacity loop, the system's one skeleton loop; a loop is where linear timing is allowed | opacity, 1 to 0.5 | `motion-reduce:animate-none`: the bar holds still at full opacity; `skeleton.test.tsx` expects both classes |

The browser throttles the loop in a hidden tab; nothing in the component pauses it when it is scrolled away, and a pending region seldom outlives one screen. NEEDS REVIEW.

## Props

<!-- Props generated from registry/cobalt/ui/skeleton.tsx with TypeScript by scripts/props-table.mjs -->
| Prop | Type | Default | Purpose |
|---|---|---|---|
| `shape?` | `"line" \| "block"` | `"line"` | `block` a picture. |

Also accepts every native `<span>` attribute.

- `shape`: `"line"` (the default) or `"block"`.

Every `span` attribute passes to the root. For a line the root is the `skeleton-line` span, so `className` and `style` set its width, such as `w-44` or `style={{ width: "40%" }}`; the bar inside fills it. For a block the root is the bar, so `className` sets the whole size and corner. `ref` reaches the root `span`.

## Usage

### When to use
- The text's shape is known and the answer takes longer than the slow-wait delay, so the bars promise what arrives.
- A picture, a chart or an avatar has a known size, and a block holds its place.
- A `Suspense` boundary waits on a module whose rendered size is known.

### When not to use
- The wait may be under 250ms. Use useSlowWait instead, which keeps the previous content until the wait is worth admitting to.
- The content is already on screen and a reload, a page turn or a filter replaces it. Use ListBody instead, which keeps it on screen, dimmed, until the answer lands.
- The answer is known to be none. Use Empty instead.
- A control is waiting on its own action. Use StateButton instead.
- The shape of the answer is not known. Use Spinner instead.

### Rules
- `rule/skeleton-line-in-the-text`: When a skeleton stands in for text, put a line inside the element that will hold the text and give it only a width such as `w-40`, instead of a bar with its own height or a box beside the text, because the line takes the line height of the element it sits in, so the text replaces it with no change in height and the page does not jump. Evidence: single use `docs/system/examples/skeleton/default.tsx:77-78`, each line sits inside the `p` that holds the name, and the list measures 182px loading and loaded; single use `docs/system/examples/skeleton/in-card.tsx:79-90`, a title, a description and three values, the card measures 206px loading and loaded; single use `registry/cobalt/ui/data-table.tsx:370-372`, a line at a share of the cell's width; principle heuristic: visibility of system status, the shape is the promise of the content. Check: probe trap/loading-layout-shift measures the region idle and pending (`browser.md`, Measuring a loading state); test `skeleton.test.tsx` expects the line shape; review.
  - Don't: `<p className="text-sm"><Skeleton className="h-4 w-40" /></p>`
  - Do: `<p className="text-sm"><Skeleton className="w-40" /></p>`
- `rule/skeleton-block-for-pictures`: When a skeleton stands in for a picture, a chart or an avatar, use `shape="block"` and give it the size and corner of what it stands for, instead of a line stretched to a height, because a line follows the text's line height and a block takes the size you give it. Evidence: single use `app/pages/component.tsx:89`, the example frame's fallback is a block 36px by 160px; single use `docs/system/examples/use-slow-wait/default.tsx:32`, a block the size of the content it holds the place of; principle heuristic: visibility of system status, the shape is the promise of the content. Check: test `skeleton.test.tsx` expects the block to keep the caller's size and corner; review.
  - Don't: `<Skeleton className="h-32 w-full" />`
  - Do: `<Skeleton shape="block" className="size-10 rounded-full" />`
- `rule/skeleton-owner-says-busy`: When skeletons replace a region's content, set `aria-busy="true"` on the region, or render the table's `status="pending"`, and give the skeleton no `role`, label or live region, because the bars are `aria-hidden` and say nothing, and the owner says "busy" once. Evidence: principle wcag: 4.1.3 Status messages, one region reports the wait; single use `docs/system/examples/skeleton/default.tsx:73`, the list carries `aria-busy` while its rows load; single use `registry/cobalt/ui/data-table.tsx:2170`, the table sets `aria-busy` while the lines show. Check: test `skeleton.test.tsx` expects `aria-hidden="true"` and no `role` on the bar.
  - Don't: `<Skeleton role="status" aria-label="Loading" className="w-40" />`
  - Do: `<ul aria-busy="true"><li><Skeleton className="w-40" /></li></ul>`
- `rule/skeleton-after-the-slow-wait`: When the wait may end within 250ms, gate the skeleton with `useSlowWait(waiting)` and keep the previous content until it says yes, instead of swapping to the bars on the first frame, because a skeleton that flashes for 50ms is worse than nothing, and once shown it holds for 400ms so it never appears and vanishes in one breath. Evidence: person D25; single use `registry/cobalt/ui/data-table.tsx:1574-1582`, the table holds its first-load placeholders through `useSlowWait` and dims rows only after the slow wait; single use `docs/system/examples/use-slow-wait/default.tsx:31-32`, the block shows only on the slow answer. Check: review of every `Skeleton` behind a fetch.
  - Don't: `{loading ? <Skeleton shape="block" className="h-12 w-full" /> : <Row />}`
  - Do: `const slow = useSlowWait(loading); return slow ? <Skeleton shape="block" className="h-12 w-full" /> : <Row />;`

- `rule/skeleton-first-remote-load-only`: When content is on its first load from a server and the answer can take longer than 250ms, show a skeleton in its shape; when the content is cached, local, already on screen or computed in the page, show no skeleton at all, instead of bars on every render or every refetch, because a skeleton promises a wait, and bars over data that is already here, or that answers in one frame, are a wait that does not exist. A list that already shows its rows keeps them, dimmed (`ListBody`, or DataTable's stale rows), and never goes back to bars; DataTable shows its placeholders only while it has no rows and holds them through `useSlowWait`, like every sibling. Evidence: person D25; person D39; single use `registry/cobalt/ui/data-table.tsx:1574-1577`, the table's placeholders show only while it has no rows, held by the same hook as its siblings. Check: review of every `Skeleton`: its host has a request, and the bars render only while that request has returned nothing yet.
  - Don't: `{status === "pending" ? <Skeleton className="w-40" /> : name}` on a list that already shows its names
  - Do: `{rows === null ? <Skeleton className="w-40" /> : <ListBody busy={useSlowWait(status === "pending")}>{names}</ListBody>}`

### Content
Not applicable: Skeleton renders no text. The owner's loading word lives in its own slot, such as the table's `labels.loading`.

### Anti-slop
- `rule/skeleton-no-shimmer`: When a skeleton is wanted, use `Skeleton` with its opacity pulse instead of a gradient highlight sweeping across the bar, because a gradient is a banned fill and a travelling highlight is movement, which the pulse is not. Evidence: person D11; person D12; single use `registry/cobalt/ui/skeleton.tsx:6-7`, the bar's only animation is `animate-pulse`, an opacity loop that `motion-reduce:animate-none` stops, and `skeleton.test.tsx` expects both classes. Check: lint rule/ban-gradient (scripts/check-system.mjs).
  - Don't: `<div className="h-4 w-40 animate-shimmer rounded-2xl bg-linear-to-r from-muted via-background to-muted" />`
  - Do: `<Skeleton className="w-40" />`

### Limits
Not applicable: a skeleton takes the size of the content it stands for, so no count, length or size of its own breaks; the number of bars follows the owner's first screen, and the table's row count is measured on its own page.

## Accessibility
Rests on a `span` with `aria-hidden`. The bar is an 8 percent tint of the text colour, well under the 3:1 that WCAG 1.4.11 Non-text contrast asks of a graphic, and not re-measured since the fill changed. It is decoration hidden from assistive tech, and the owner's `aria-busy` carries the state.

### Keyboard
| Key | Where focus is | Effect | Focus after | Checked by |
|---|---|---|---|---|
| Tab | before a region of skeletons | skips them, none is focusable | the next control after the region | test |

### ARIA
| Part | Role | Accessible name from | States and properties | Announced | Checked by |
|---|---|---|---|---|---|
| root | none, `aria-hidden="true"` | nothing | none; the owning region's `aria-busy` | nothing; the owner's busy state and its loading word | test |

## Tokens
| Part | State | Token |
|---|---|---|
| bar | all | `--foreground` at 8 percent; the line's corner is `rounded-sm` (`--r-sm`), the block's default corner is `rounded-lg` (`--r-lg`) |
| bar | mount | `SPINNER_DELAY_MS` from motion.ts, `--t-fade`, `--curve` |
| line | all | `1lh` for its height and `0.6lh` for its bar, from the parent's font and leading |

## Related
- Spinner: a wait whose shape is not known.
- Empty: the answer, when it is none.
- DataTable: draws these for its pending rows.
- StateButton: a control waiting on its own action.
- Crossfade: fades in new content you step through often.
- Pagination: keeps the rows of a list, dimmed and out of reach, while the next page loads.
- Progress: shows how much of a known amount is done, as a bar that fills toward its end.
- MissingValue: says why a value is missing: Unknown, Withheld, Not reported, Could not be read or Does not apply.
