{"name":"progress-ring","title":"Progress Ring","description":"","kind":"component","category":"display","status":"stable","props":{"progress":{"type":"number","default":0,"attr":"--fndn-progress","description":"0..1. Out-of-range and non-finite values are clamped."},"tone":{"type":"enum","values":["orange","green","red","accent"],"default":"orange"},"size":{"type":"enum","values":["sm","md"],"default":"md","description":"sm 24px · md 28px"},"label":{"type":"string","default":"Progress","attr":"aria-label","description":"Accessible name of the progress bar."}},"playground":{"name":"Playground","props":{"progress":0.6,"tone":"orange","size":"md","label":"Setup: 3 of 5 steps done"},"text":"3"},"exampleFiles":[{"file":"setup-checklist","title":"Setup checklist"},{"file":"pipeline-steps","title":"Pipeline steps"},{"file":"import-failed","title":"Import stopped"}],"worstCase":[{"name":"Over range","props":{"progress":1.4,"tone":"green","size":"md","label":"Progress"},"text":"9"},{"name":"Below range","props":{"progress":-0.2,"tone":"red","size":"md","label":"Progress"},"text":"0"},{"name":"Two digits","props":{"progress":0.5,"tone":"orange","size":"md","label":"Step 12 of 24"},"text":"12"},{"name":"Two digits, small","props":{"progress":0.5,"tone":"accent","size":"sm","label":"Step 12 of 24"},"text":"12"}],"anatomy":[{"part":"root","element":"span","description":"role=progressbar with aria-valuenow; carries --fndn-progress"},{"part":"svg","element":"svg","description":"rotated -90deg so the arc starts at 12 o'clock"},{"part":"track","element":"circle"},{"part":"bar","element":"circle","description":"pathLength=100; dashoffset = 100 * (1 - progress)"},{"part":"label","element":"span","optional":true}],"slots":{"default":"Center content (a step number)"},"states":[],"tokens":["color.line","color.orange","color.green","color.red","color.accent","color.ink","text.2xs","text.xs","duration.move","easing.out-strong"],"a11y":{"role":"progressbar","notes":["aria-valuenow is the progress as a whole percentage; give the ring a label that says what is progressing.","The center content is visual shorthand (a step number); the label and value carry the meaning."]},"motion":["arc: stroke-dashoffset over duration.move, easing.out-strong when progress changes; jumps under prefers-reduced-motion","tone: the stroke colour changes over duration.base ease, with the travel (a completion turns green as the arc lands)","nothing animates on mount"]}