Skeleton
src/lib/components/skeleton.tsx·shape (text · block · circle) · size (text: label · body · title; block / circle: sm · md · lg)
Guide
tentativeWhen to use
- Loading: first opening a new configuration or a saved draft, before any value is there to show (PRD 01; plan S8).
Do
- Build the loading form inside the real Panels, one
fieldskeleton per real Field, in the same columns — so nothing moves when the values arrive. - Give
labelto exactly one skeleton per loading region (“Loading configuration…”); every shape is hidden from screen readers. - Use
width="full"inside a grid cell;halfandthirdare for a field standing alone in a wide column.
Don't
- 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.
Open
- No skeleton fill token: the fill is
muted-strongat 50%, chosen becausemuteddisappears 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