{
  "antiPatterns": [
    "Reporting zero while the amount completed is unknown.",
    "Passing a rounded percentage as value when max counts individual units."
  ],
  "api": {
    "importPath": "@ancrel/ui",
    "props": [
      {
        "name": "className",
        "required": false,
        "type": "string"
      },
      {
        "name": "indeterminate",
        "required": false,
        "type": "boolean"
      },
      {
        "name": "key",
        "required": false,
        "type": "React.Key | null | undefined"
      },
      {
        "name": "label",
        "required": true,
        "type": "string"
      },
      {
        "name": "max",
        "required": false,
        "type": "number"
      },
      {
        "name": "ref",
        "required": false,
        "type": "React.Ref<HTMLProgressElement> | undefined"
      },
      {
        "name": "value",
        "required": false,
        "type": "number"
      }
    ],
    "symbol": "Progress",
    "typeRef": "api/ui/progress/index.d.ts"
  },
  "constraints": [
    "Use a visible label describing the work.",
    "Supply a positive finite max in the same units as value."
  ],
  "docs": "raw/frontend/progress.md",
  "examples": [
    {
      "code": "'use client'\n\nimport { useState } from 'react'\nimport { Button, Progress } from '@ancrel/ui'\nimport '@ancrel/tokens/css'\nimport '@ancrel/ui/styles.css'\n\nexport default function App() {\n  const [pages, setPages] = useState<number>()\n  return <>\n    <Progress label=\"Pages reviewed\" value={pages} max={4} />\n    <Button disabled={pages === 4} onClick={() => setPages((pages ?? 0) + 1)}>Review one page</Button>\n  </>\n}\n",
      "command": "pnpm test",
      "entry": "examples/fe.progress/App.tsx",
      "fixture": "examples/fe.progress/",
      "id": "minimal"
    }
  ],
  "id": "fe.progress",
  "kind": "react-component",
  "language": "typescript",
  "layer": "frontend",
  "owner": "frontend-infra",
  "package": {
    "ecosystem": "npm",
    "name": "@ancrel/ui",
    "version": "0.2.0"
  },
  "provenance": {
    "changes": "Generalized the bounded progress indicator at lines 1065–1082 into a labeled native progress element. Added clamping, an indeterminate state and token-based styling.",
    "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
    "mode": "extracted",
    "origin": "rule-studio",
    "path": "frontend/src/components/tasks/TaskDetailDrawer.tsx",
    "rights": "org-internal; approved-by=owner; ref=item-15"
  },
  "schemaVersion": 1,
  "stability": "experimental",
  "summary": "Display a named native progress bar with a bounded value or indeterminate state.",
  "tokenDependencies": [
    "ref.color.x202025",
    "ref.color.x212127",
    "ref.color.x393941",
    "ref.color.x684a84",
    "ref.color.xb9a3d2",
    "ref.color.xc0c0c9",
    "ref.color.xcdb2ea",
    "ref.color.xededef",
    "ref.color.xfafafd",
    "ref.duration.ms300",
    "ref.space.px2",
    "ref.space.px4",
    "ref.space.px6",
    "ref.space.px8",
    "sys.action.accent",
    "sys.action.focus",
    "sys.ink.primary",
    "sys.ink.secondary",
    "sys.motion.slow",
    "sys.radius.md",
    "sys.space.hair",
    "sys.space.snug",
    "sys.space.tight",
    "sys.surface.raised"
  ]
}
