Components

← All components

Skeleton

src/lib/components/skeleton.tsx·shape (text · block · circle) · size (text: label · body · title; block / circle: sm · md · lg)

Guide

tentative
  • Loading: first opening a new configuration or a saved draft, before any value is there to show (PRD 01; plan S8).
  • Build the loading form inside the real Panels, one field skeleton per real Field, in the same columns — so nothing moves when the values arrive.
  • Give label to exactly one skeleton per loading region (“Loading configuration…”); every shape is hidden from screen readers.
  • Use width="full" inside a grid cell; half and third are for a field standing alone in a wide column.
  • Don't use a skeleton for a check on one field while the form stays visible — that is Field status: checking (PRD 01 “Checking”).
  • Don't replace values the user has already entered with skeletons; Checking keeps entered values visible.
  • Don't give every skeleton a label — the status would be announced once per shape.
  • No skeleton fill token: the fill is muted-strong at 50%, chosen because muted disappears on a panel.
  • Whether Loading on open shows the panels' titles and the step indicator, or skeletons for them too (plan S8 is not designed yet).

Related: Field, Panel, ComboboxSources: src/lib/components/skeleton.tsx · docs/product/prd-01-inference-custom-configuration.md · docs/product/configuration-redesign-plan.md

shape=field

shape=field hint

shape=field hint width=half

shape=line

shape=line lines=3

shape=block height=control width=third

shape=block height=md

shape=block height=lg