{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A narrow number field between a minus and a plus ghost icon button, drawn as one control (4px inside its ring). Static markup: the buttons carry no logic; the page wires them.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/number-field.json\n    A narrow number field between a minus and a plus ghost icon button, drawn as one control (4px inside its ring). Static markup: the buttons carry no logic; the page wires them.\n    Props (p): value, name, min, label, decrease, increase. -#}\n{%- set v_value = (p.value ?? '') -%}\n{%- set v_name = (p.name ?? '') -%}\n{%- set v_min = (p.min ?? '') -%}\n{%- set v_label = (p.label ?? null) -%}\n{%- set v_decrease = (p.decrease ?? null) -%}\n{%- set v_increase = (p.increase ?? null) -%}\n{%- set c_3 -%}\n  {%- set c_1 -%}\n    {{ include('icons/LucideIcon.html.twig', {'name': 'minus', 'size': 16}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(v_decrease), 'children': c_1}, with_context = false) }}\n  {{ include('compose/Input.html.twig', {'type': 'number', 'name': og_s(v_name), 'value': og_s(v_value), 'min': og_s(v_min), 'size': 'sm', 'class': 'number-bare w-8 bg-transparent px-0 text-center inset-ring-0', 'attrs': og_attrs(['aria-label', v_label])}, with_context = false) }}\n  {%- set c_2 -%}\n    {{ include('icons/LucideIcon.html.twig', {'name': 'plus', 'size': 16}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(v_increase), 'children': c_2}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': 'inline-flex h-10 items-center gap-1 rounded bg-background p-1 inset-ring inset-ring-input', 'attrs': og_attrs(['data-slot', 'number-field']), 'children': c_3}, with_context = false) }}\n",
      "path": "blocks/number-field.html.twig",
      "target": "blocks/number-field.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "number-field",
  "registryDependencies": [
    "box",
    "button",
    "input",
    "lucide-icon",
    "utils"
  ],
  "runtime": "twig",
  "title": "Number Field",
  "type": "registry:component"
}
