{"name":"spinner","title":"Spinner","description":"","kind":"component","category":"feedback","status":"stable","props":{"size":{"type":"enum","values":["sm","md","lg"],"default":"sm"},"label":{"type":"string","attr":"aria-label","default":"Loading"},"decorative":{"type":"boolean","default":false,"description":"Purely visual, inside something that is already a status region (selection-actions' status): aria-hidden, no role=status and no label."}},"playground":{"name":"Playground","props":{"size":"sm","label":"Building"}},"exampleFiles":[{"file":"deploy-list","title":"A build running in a list"},{"file":"busy-button","title":"Deploy in progress"},{"file":"loading-panel","title":"Loading a panel"}],"worstCase":[{"name":"Descriptive label","props":{"size":"md","label":"Loading 12,480 supplier records"}}],"anatomy":[{"part":"root","element":"span","description":"role=status"}],"states":[],"tokens":["color.line-strong","color.ink-2"],"a11y":{"role":"status","notes":["The label is the accessible name; make it say what is loading.","Do not show a spinner for work that finishes in under 300ms; the flash reads as a glitch."]},"motion":["rotate 360° every 700ms, linear, forever","keeps spinning under prefers-reduced-motion: it is the loading signal, not decoration"]}