{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "row-selection",
  "type": "registry:ui",
  "title": "Row selection",
  "description": "Row selection checkbox for data tables with checked and indeterminate states and a default Select row label. Pairs with a header checkbox for select all.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/checkbox.json"
  ],
  "files": [
    {
      "path": "registry/ui/row-selection.tsx",
      "type": "registry:ui",
      "target": "components/ui/row-selection.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { Checkbox } from \"@/components/ui/checkbox\"\nfunction RowSelection({\n  checked,\n  indeterminate,\n  onCheckedChange,\n  \"aria-label\": ariaLabel,\n}: {\n  checked?: boolean\n  indeterminate?: boolean\n  onCheckedChange?: (v: boolean) => void\n  \"aria-label\"?: string\n}) {\n  return (\n    <span data-slot=\"row-selection\">\n      <Checkbox\n        aria-label={ariaLabel ?? \"Select row\"}\n        checked={indeterminate ? (\"indeterminate\" as never) : checked}\n        onCheckedChange={(v) => onCheckedChange?.(!!v)}\n      />\n    </span>\n  )\n}\nexport { RowSelection }\n"
    }
  ]
}
