{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A form field: label, control (children), hint and error text. `htmlFor` ties the label to the id of the control.",
  "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/parts/field.json\n    A form field: label, control (children), hint and error text. `htmlFor` ties the label to the id of the control.\n    Props (p): label, htmlFor, hint, error, className; children: markup. *}\n{var $v_label = ($p['label'] ?? null)}\n{var $v_htmlFor = ($p['htmlFor'] ?? null)}\n{var $v_hint = ($p['hint'] ?? null)}\n{var $v_error = ($p['error'] ?? null)}\n{capture $c_4}\n  {capture $c_1}\n    {=og_text($v_label)}\n  {/capture}\n  {=og_include('compose/Label.latte', ['class' => 'text-xs font-bold text-foreground', 'htmlFor' => og_s($v_htmlFor), 'children' => (string) $c_1])|noescape}\n  {=og_slot(($children ?? null))|noescape}\n  {if og_t($v_error)}\n    {capture $c_2}\n      {=og_text($v_error)}\n    {/capture}\n    {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-semibold text-destructive', 'attrs' => og_attrs(['role', 'alert']), 'children' => (string) $c_2])|noescape}\n  {elseif og_t($v_hint)}\n    {capture $c_3}\n      {=og_text($v_hint)}\n    {/capture}\n    {=og_include('compose/Text.latte', ['class' => 'm-0 text-xs font-medium text-muted-foreground', 'children' => (string) $c_3])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex min-w-0 flex-col gap-2', ($p['className'] ?? '')])), 'children' => (string) $c_4])|noescape}\n",
      "path": "blocks/field.latte",
      "target": "blocks/field.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "field",
  "registryDependencies": [
    "box",
    "label",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Field",
  "type": "registry:component"
}
