{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status",
  "title": "Status",
  "description": "A run status badge with a mark and a label.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/react@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/react/status.tsx",
      "content": "\"use client\";\n\nimport { statusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/react/primitive\";\nimport type { ComponentProps } from \"react\";\n\nconst parts = createParts(statusPrimitive, { root: \"span\", icon: \"span\", label: \"span\", stalled: \"span\" });\n\nexport type StatusProps = ComponentProps<typeof parts.Root>;\n\n/**\n * A run status badge: its mark, label and, while stalled, \"No update for 5 min\". Any `children`, `StatusIcon`,\n * `StatusLabel` and `StatusStalled` among them, replace these.\n */\nexport function Status({ children, ...props }: StatusProps) {\n  return (\n    <parts.Root {...props}>\n      {children !== undefined ? (\n        children\n      ) : (\n        <>\n          <parts.Icon />\n          <StatusLabel />\n          <StatusStalled />\n        </>\n      )}\n    </parts.Root>\n  );\n}\n\nexport const StatusIcon = parts.Icon;\n\nexport type StatusLabelProps = ComponentProps<typeof parts.Label>;\n\n/** The status's text: its `label`, unless you pass children. */\nexport function StatusLabel({ children = ({ label }) => label, ...props }: StatusLabelProps) {\n  return <parts.Label {...props}>{children}</parts.Label>;\n}\n\nexport type StatusStalledProps = Omit<ComponentProps<typeof parts.Stalled>, \"children\">;\n\n/** \"No update for 5 min\", while a running status has had no update for `stalledAfter`. */\nexport function StatusStalled(props: StatusStalledProps) {\n  return <parts.Stalled {...props}>{({ text }) => text}</parts.Stalled>;\n}\n",
      "type": "registry:ui",
      "target": "@ui/status.tsx"
    }
  ],
  "meta": {
    "layer": "react"
  },
  "type": "registry:ui"
}
