{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "number-stepper",
  "type": "registry:component",
  "title": "NumberStepper",
  "description": "A quantity stepper for carts and counters: the number sits on a tilted scrap of paper between two small round stickers, − and +. A native number input does the work underneath.",
  "categories": [
    "inputs"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/number-stepper-example.tsx",
      "type": "registry:component",
      "target": "components/plop/number-stepper-example.tsx",
      "content": "\"use client\";\n\nimport { NumberStepper } from \"@plop-ui/react\";\n\n/** NumberStepper: the example from https://plopui.com/docs/components/number-stepper. Edit it freely; the component comes from npm. */\nexport function NumberStepperExample() {\n  return (\n    <>\n      <NumberStepper label=\"Quantity\" min={1} max={9} defaultValue={2} />\n\n      // A cart row: controlled, small, with the label kept for screen readers only.\n      <NumberStepper label=\"Quantity of Matcha latte\" hideLabel size=\"sm\"\n        min={1} max={9} value={qty} onValueChange={setQty} />\n\n      // At 1, − turns into a trash button. The row unmounts after onRemove: move focus to the next row.\n      <NumberStepper label=\"Quantity of Matcha latte\" hideLabel size=\"sm\"\n        min={1} max={9} value={qty} onValueChange={setQty}\n        removeLabel=\"Remove Matcha latte\" removedMessage=\"Matcha latte removed\"\n        onRemove={() => { removeRow(\"latte\"); focusNextRow(); }} />\n\n      // Bigger steps; End jumps to max.\n      <NumberStepper label=\"Tea bags\" min={0} max={100} step={10} defaultValue={20} />\n    </>\n  );\n}\n"
    }
  ],
  "docs": "Example: components/plop/number-stepper-example.tsx. Docs: https://plopui.com/docs/components/number-stepper"
}
