{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox-group-price-list",
  "title": "Checkbox group: price list recipients",
  "description": "An example of Checkbox group: price list recipients.",
  "dependencies": [],
  "registryDependencies": [
    "@keyline-ui/checkbox-group",
    "@keyline-ui/keyline"
  ],
  "files": [
    {
      "path": "src/registry/keyline/examples/checkbox-group-price-list.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { CheckboxGroup } from \"../ui/checkbox-group\";\n\nconst REPS = [\n  { value: \"dwight\", label: \"Dwight Schrute\", meta: \"41\" },\n  { value: \"jim\", label: \"Jim Halpert\", meta: \"33\" },\n  { value: \"phyllis\", label: \"Phyllis Vance\", meta: \"28\" },\n  { value: \"stanley\", label: \"Stanley Hudson\", meta: \"26\" },\n  { value: \"andy\", label: \"Andy Bernard\", description: \"Away until Friday\", meta: \"19\", disabled: true },\n];\n\nexport function PriceListRecipients() {\n  const [to, setTo] = useState([\"dwight\", \"jim\"]);\n  const names = REPS.filter((r) => to.includes(r.value)).map((r) => r.label.split(\" \")[0]);\n\n  return (\n    <div className=\"grid max-w-[420px] gap-3\">\n      <CheckboxGroup\n        legend=\"Send the new price list to\"\n        description=\"Open accounts per rep.\"\n        selectAll=\"All of sales\"\n        options={REPS}\n        value={to}\n        onValueChange={setTo}\n      />\n      <p role=\"status\" className=\"m-0 text-[14px] text-kl-ink-2\">\n        {names.length ? `${names.join(\", \")} will get it at 9 tomorrow.` : \"Nobody gets it yet.\"}\n      </p>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/keyline/examples/checkbox-group-price-list.tsx"
    }
  ],
  "categories": [
    "checkbox-group"
  ],
  "type": "registry:block"
}