{
  "$schema": "https://design.senvenli.com/schema/component.full.json",
  "kind": "component",
  "family": "form",
  "status": "alpha",
  "import": "@senvenli/react/form",
  "name": "input",
  "title": "Input",
  "exports": [
    "Input"
  ],
  "description": "One text-entry field with a label, description and error; `type` picks text, email, url, password, search, number or tel.",
  "keywords": [
    "text",
    "email",
    "url",
    "field",
    "password",
    "secret",
    "credentials",
    "sign in",
    "search",
    "filter",
    "query",
    "find",
    "number",
    "quantity",
    "currency",
    "amount",
    "stepper",
    "phone",
    "telephone",
    "mobile",
    "country code",
    "e164",
    "text field",
    "tel"
  ],
  "usage": {
    "when": [
      "Short free text: a name, an email, a code.",
      "Entering or creating a password.",
      "Searching or filtering a list or the app.",
      "Entering a number: a quantity, a price, a percentage.",
      "Any phone number a person types: sign-up, checkout, contact details."
    ],
    "instead": [
      {
        "use": "text-area",
        "when": "The text may run to several lines."
      }
    ]
  },
  "guidance": [
    {
      "rule": "Errors say what happened and what to do: \"Enter a valid email: name@example.com\"."
    }
  ],
  "a11y": {
    "builtIn": [
      "Label, description and error are announced with the input.",
      "Required fields show \"Fill in this field.\" after a blur or a submit; your own `errorMessage` replaces it.",
      "The toggle is named \"Show password\" / \"Hide password\".",
      "Password managers can fill it.",
      "The clear button is named \"Clear\".",
      "Steppers are named \"Increase\" and \"Decrease\".",
      "Formats and parses in the user's locale.",
      "The country button is named with the country and its code.",
      "Too short and too long say so in words.",
      "Required fields show \"Fill in this field.\""
    ],
    "youProvide": [
      "A visible label.",
      "A label or placeholder that lists what can be searched.",
      "The range in the label or description.",
      "suggestedCountries for the markets the form expects."
    ],
    "keyboard": [
      {
        "keys": "Escape",
        "does": "Clears the field."
      },
      {
        "keys": "Enter",
        "does": "Submits the search."
      },
      {
        "keys": "Arrow up / down",
        "does": "Increments or decrements by the step."
      },
      {
        "keys": "Arrow down",
        "does": "Opens the country list from the country button."
      },
      {
        "keys": "Type",
        "does": "Searches countries by name or calling code."
      }
    ]
  },
  "related": [
    "text-area",
    "field",
    "badge"
  ],
  "genui": {
    "expose": true,
    "description": "A single-line text input. Always give a label; use type email, url or tel when it fits. Emits change.",
    "props": [
      "label",
      "description",
      "placeholder",
      "type",
      "isRequired",
      "variant"
    ],
    "children": "none",
    "events": [
      "change"
    ],
    "schema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "label": {
          "type": "string",
          "description": "Always given; the label sits above the field, never inside it."
        },
        "description": {
          "type": "string"
        },
        "placeholder": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "url",
            "email",
            "password",
            "search",
            "number",
            "tel"
          ],
          "description": "`text` (default), `email` or `url`: the matching keyboard and autofill on phones."
        },
        "isRequired": {
          "type": "boolean",
          "description": "Whether user input is required on the input before form submission."
        },
        "variant": {
          "type": "string",
          "enum": [
            "text",
            "numeric",
            "code"
          ],
          "description": "`code` for codes, references and IDs; `numeric` for money, distance and counts."
        }
      }
    }
  },
  "source": [
    "src/form/input.tsx"
  ],
  "props": {
    "Input": [
      {
        "name": "defaultValue",
        "type": "string | number",
        "required": false,
        "origin": "aria",
        "description": "The default value (uncontrolled).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "suppressHydrationWarning",
        "type": "boolean",
        "required": false,
        "origin": "dom",
        "description": "A React-only flag that suppresses the warning React normally logs when an element's\nserver-rendered content doesn't match the client render during hydration. See [React\ndocs](https://react.dev/reference/react-dom/client/hydrateRoot#suppressing-unavoidable-hydration-mismatch-errors).",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "autoCapitalize",
        "type": "\"off\" | \"none\" | \"on\" | \"sentences\" | \"words\" | \"characters\" | (string & {})",
        "required": false,
        "origin": "own",
        "description": "Mobile keyboards' capitalization: `none` for e-mail and codes, `characters` for codes, `words` for names.\nReact Aria's TextField forwards it to the input (useTextField reads it); its types leave it out, so it is declared here.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "autoFocus",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether the element should receive focus on render.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "dir",
        "type": "string",
        "required": false,
        "origin": "dom",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "enterKeyHint",
        "type": "\"enter\" | \"done\" | \"go\" | \"next\" | \"previous\" | \"search\" | \"send\"",
        "required": false,
        "origin": "aria",
        "description": "An enumerated attribute that defines what action label or icon to preset for the enter key on\nvirtual keyboards. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).",
        "schema": {
          "type": "string",
          "enum": [
            "enter",
            "done",
            "go",
            "next",
            "previous",
            "search",
            "send"
          ]
        }
      },
      {
        "name": "hidden",
        "type": "boolean",
        "required": false,
        "origin": "dom",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "id",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "The element's unique identifier. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "lang",
        "type": "string",
        "required": false,
        "origin": "dom",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "slot",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "A slot name for the component. Slots allow the component to receive props from a parent\ncomponent. An explicit `null` value indicates that the local props completely override all\nprops received from a parent.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "spellCheck",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "An enumerated attribute that defines whether the element may be checked for spelling errors.\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "translate",
        "type": "\"yes\" | \"no\"",
        "required": false,
        "origin": "dom",
        "schema": {
          "type": "string",
          "enum": [
            "yes",
            "no"
          ]
        }
      },
      {
        "name": "autoCorrect",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "An attribute that takes as its value a space-separated string that describes what, if any, type\nof autocomplete functionality the input should provide. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "inert",
        "type": "boolean",
        "required": false,
        "origin": "dom",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "inputMode",
        "type": "\"none\" | \"search\" | \"text\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\"",
        "required": false,
        "origin": "aria",
        "description": "Hints at the type of data that might be entered by the user while editing the element or its\ncontents. See\n[MDN](https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute).",
        "schema": {
          "type": "string",
          "enum": [
            "none",
            "search",
            "text",
            "tel",
            "url",
            "email",
            "numeric",
            "decimal"
          ]
        }
      },
      {
        "name": "aria-activedescendant",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox,\ngroup, or application.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-autocomplete",
        "type": "\"none\" | \"inline\" | \"list\" | \"both\"",
        "required": false,
        "origin": "dom",
        "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's\nintended value for an input and specifies how predictions would be presented if they are made.",
        "schema": {
          "type": "string",
          "enum": [
            "none",
            "inline",
            "list",
            "both"
          ]
        }
      },
      {
        "name": "aria-controls",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the element (or elements) whose contents or presence are controlled by the current\nelement.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-describedby",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the element (or elements) that describes the object.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-details",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the element (or elements) that provide a detailed, extended description for the\nobject.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-errormessage",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the element that provides an error message for the object.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-haspopup",
        "type": "boolean | \"true\" | \"false\" | \"menu\" | \"listbox\" | \"tree\" | \"grid\" | \"dialog\"",
        "required": false,
        "origin": "dom",
        "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that\ncan be triggered by an element.",
        "schema": {
          "enum": [
            false,
            true,
            "true",
            "false",
            "menu",
            "listbox",
            "tree",
            "grid",
            "dialog"
          ]
        }
      },
      {
        "name": "aria-invalid",
        "type": "boolean | \"true\" | \"false\"",
        "required": false,
        "origin": "own",
        "description": "Set by a form row that owns the error text (the shared `Field` hands its control `aria-invalid`): the field\nshows its invalid state as with `isInvalid`, and without an `errorMessage` of its own draws no error row,\nso the row's message is the only one. It marks the input for assistive tech and draws it\ninvalid only: unlike `isInvalid` it never becomes the input's native validity, so it never blocks a form's\nsubmit, and the field's own validation runs as without it.",
        "schema": {
          "enum": [
            false,
            true,
            "true",
            "false"
          ]
        }
      },
      {
        "name": "aria-label",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Defines a string value that labels the current element.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "aria-labelledby",
        "type": "string",
        "required": false,
        "origin": "dom",
        "description": "Identifies the element (or elements) that labels the current element.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "onCopy",
        "type": "ClipboardEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the user copies text. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)."
      },
      {
        "name": "onCut",
        "type": "ClipboardEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the user cuts text. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)."
      },
      {
        "name": "onPaste",
        "type": "ClipboardEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the user pastes text. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)."
      },
      {
        "name": "onCompositionEnd",
        "type": "CompositionEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when a text composition system completes or cancels the current text\ncomposition session. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionend_event)."
      },
      {
        "name": "onCompositionStart",
        "type": "CompositionEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when a text composition system starts a new text composition session.\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event)."
      },
      {
        "name": "onCompositionUpdate",
        "type": "CompositionEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when a new character is received in the current text composition\nsession. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionupdate_event)."
      },
      {
        "name": "onFocus",
        "type": "(e: FocusEvent<HTMLInputElement, Element>) => void | (e: FocusEvent<Element, Element>) => void",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the element receives focus."
      },
      {
        "name": "onBlur",
        "type": "(e: FocusEvent<HTMLInputElement, Element>) => void | (e: FocusEvent<Element, Element>) => void | (event: FocusEvent<HTMLInputElement, Element>) => void",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the element loses focus."
      },
      {
        "name": "onChange",
        "type": "(value: string) => void | (value: number) => void | (value: string, country: string) => void",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the value changes."
      },
      {
        "name": "onBeforeInput",
        "type": "FormEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the input value is about to be modified. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforeinput_event)."
      },
      {
        "name": "onInput",
        "type": "FormEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the input value is modified. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event)."
      },
      {
        "name": "onKeyDown",
        "type": "(e: KeyboardEvent) => void",
        "required": false,
        "origin": "dom",
        "description": "Handler that is called when a key is pressed."
      },
      {
        "name": "onKeyUp",
        "type": "(e: KeyboardEvent) => void",
        "required": false,
        "origin": "dom",
        "description": "Handler that is called when a key is released."
      },
      {
        "name": "onAuxClick",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAuxClickCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onClick",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onClickCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onContextMenu",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onContextMenuCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onDoubleClick",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onDoubleClickCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseDown",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseDownCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseEnter",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseLeave",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseMove",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseMoveCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseOut",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseOutCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseOver",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseOverCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseUp",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onMouseUpCapture",
        "type": "MouseEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onSelect",
        "type": "ReactEventHandler<HTMLInputElement>",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when text in the input is selected. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/select_event)."
      },
      {
        "name": "onTouchCancel",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchCancelCapture",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchEnd",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchEndCapture",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchMove",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchMoveCapture",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchStart",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTouchStartCapture",
        "type": "TouchEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerDown",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerDownCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerMove",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerMoveCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerUp",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerUpCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerCancel",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerCancelCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerEnter",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerLeave",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerOver",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerOverCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerOut",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onPointerOutCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onGotPointerCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onGotPointerCaptureCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onLostPointerCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onLostPointerCaptureCapture",
        "type": "PointerEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onScroll",
        "type": "UIEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onScrollCapture",
        "type": "UIEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onWheel",
        "type": "WheelEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onWheelCapture",
        "type": "WheelEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationStart",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationStartCapture",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationEnd",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationEndCapture",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationIteration",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onAnimationIterationCapture",
        "type": "AnimationEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionCancel",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionCancelCapture",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionEnd",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionEndCapture",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionRun",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionRunCapture",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionStart",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "onTransitionStartCapture",
        "type": "TransitionEventHandler<HTMLDivElement>",
        "required": false,
        "origin": "dom"
      },
      {
        "name": "variant",
        "type": "\"text\" | \"numeric\" | \"code\"",
        "required": false,
        "origin": "own",
        "description": "`code` for codes, references and IDs; `numeric` for money, distance and counts.",
        "schema": {
          "type": "string",
          "enum": [
            "text",
            "numeric",
            "code"
          ]
        }
      },
      {
        "name": "step",
        "type": "string | number | number",
        "required": false,
        "origin": "own",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "isDisabled",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether the input is disabled.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "onFocusChange",
        "type": "(isFocused: boolean) => void",
        "required": false,
        "origin": "aria",
        "description": "Handler that is called when the element's focus status changes."
      },
      {
        "name": "form",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "The `<form>` element to associate the input with.\nThe value of this attribute must be the id of a `<form>` in the same document.\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#form).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "name",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "The name of the input element, used when submitting an HTML form. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "value",
        "type": "string | number",
        "required": false,
        "origin": "aria",
        "description": "The current value (controlled).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "excludeFromTabOrder",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether to exclude the element from the sequential tab order. If true,\nthe element will not be focusable via the keyboard by tabbing. This should\nbe avoided except in rare scenarios where an alternative means of accessing\nthe element or its functionality via the keyboard is available.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "render",
        "type": "DOMRenderFunction<\"div\", TextFieldRenderProps> | DOMRenderFunction<\"div\", SearchFieldRenderProps> | DOMRenderFunction<\"div\", NumberFieldRenderProps>",
        "required": false,
        "origin": "dom",
        "description": "Overrides the default DOM element with a custom render function.\nThis allows rendering existing components with built-in styles and behaviors\nsuch as router links, animation libraries, and pre-styled components.\n\nRequirements:\n\n- You must render the expected element type (e.g. if `<button>` is expected, you cannot render an\n  `<a>`).\n- Only a single root DOM element can be rendered (no fragments).\n- You must pass through props and ref to the underlying DOM element, merging with your own prop\n  as appropriate."
      },
      {
        "name": "size",
        "type": "FieldSize",
        "required": false,
        "origin": "own",
        "schema": {
          "type": "string",
          "enum": [
            "small",
            "medium",
            "large"
          ]
        }
      },
      {
        "name": "label",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "Always given; the label sits above the field, never inside it."
      },
      {
        "name": "description",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own"
      },
      {
        "name": "errorMessage",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "What happened and what to do (\"Enter a valid email: name@example.com\")."
      },
      {
        "name": "isRequired",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether user input is required on the input before form submission.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "requiredValidation",
        "type": "RequiredValidation",
        "required": false,
        "origin": "own",
        "description": "Who says an empty required field is missing: `field` (default) or `app`. With `app` a DS\nForm's `onSubmit` runs with the field empty, and the app's own error must clear on change. See\n{@link RequiredValidation} for the whole contract.",
        "schema": {
          "type": "string",
          "enum": [
            "field",
            "app"
          ]
        }
      },
      {
        "name": "isOptional",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "description": "Shows \"(optional)\" when most of the form is required.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "isReadOnly",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether the input can be selected but not changed by the user.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "isInvalid",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Whether the value is invalid.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "validate",
        "type": "(value: string) => true | ValidationError | null | undefined | (value: number) => true | ValidationError | null | undefined",
        "required": false,
        "origin": "aria",
        "description": "A function that returns an error message if a given value is invalid.\nValidation errors are displayed to the user when the form is submitted\nif `validationBehavior=\"native\"`. For realtime validation, use the `isInvalid`\nprop instead."
      },
      {
        "name": "validationBehavior",
        "type": "\"aria\" | \"native\"",
        "required": false,
        "origin": "aria",
        "description": "Whether to use native HTML form validation to prevent form submission\nwhen the value is missing or invalid, or mark the field as required\nor invalid via ARIA.",
        "schema": {
          "type": "string",
          "enum": [
            "aria",
            "native"
          ]
        }
      },
      {
        "name": "autoComplete",
        "type": "string | \"current-password\" | \"new-password\"",
        "required": false,
        "origin": "aria",
        "description": "Describes the type of autocomplete functionality the input should provide if any. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautocomplete).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "max",
        "type": "string | number",
        "required": false,
        "origin": "own",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "maxLength",
        "type": "number",
        "required": false,
        "origin": "aria",
        "description": "The maximum number of characters supported by the input. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefmaxlength).",
        "schema": {
          "type": "number"
        }
      },
      {
        "name": "min",
        "type": "string | number",
        "required": false,
        "origin": "own",
        "description": "Bounds and step for `type=\"number\"`; prefer NumberField for money and counts that need formatting.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "minLength",
        "type": "number",
        "required": false,
        "origin": "aria",
        "description": "The minimum number of characters required by the input. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefminlength).",
        "schema": {
          "type": "number"
        }
      },
      {
        "name": "pattern",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "Regex pattern that the value of the input must match to be valid. See\n[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefpattern).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "placeholder",
        "type": "string",
        "required": false,
        "origin": "own",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "leading",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "Before the value, inside the frame: text, a unit or currency (\"€\", \"https://\"), or `<Icon name=\"search\" />`."
      },
      {
        "name": "trailing",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "After the value, inside the frame: a unit (\"kg\"), a domain, an icon."
      },
      {
        "name": "actions",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "Extra controls at the end of the frame (`InputAction`)."
      },
      {
        "name": "displayCase",
        "type": "\"uppercase\"",
        "required": false,
        "origin": "own",
        "description": "`uppercase` shows the value in capitals (a code: \"ab 123\" reads \"AB 123\"); display only\n. The input's value, `onChange` and the submitted form value stay exactly as\ntyped; the caret and selection follow the text as drawn. Capitals follow the page's language, as CSS\n`text-transform` does (`lang=\"tr\"`: \"i\" shows as \"İ\"), the same as `toLocaleUpperCase` in that locale. The\nplaceholder keeps its own case. Normalise the stored value in the app if it must be capitals.",
        "schema": {
          "type": "string",
          "enum": [
            "uppercase"
          ]
        }
      },
      {
        "name": "valueDir",
        "type": "\"inherit\" | \"ltr\"",
        "required": false,
        "origin": "own",
        "description": "`ltr` keeps the frame, addons and value, left to right on an RTL page: phone numbers, IBANs and\ncard numbers read LTR in every locale (\"ME +382 67 412 908\", never \"908 412 67 ME +382\"). The\nlabel, help text and error still follow the page. On by default for `type` `url`, `email` and `tel`\n(the placeholder then aligns LTR too); `inherit` turns that off and follows the page. Pass `ltr` for a\ndomain with URL addons: \"https://shop.example.com\", never \"com. shop.example //:https\".",
        "schema": {
          "type": "string",
          "enum": [
            "inherit",
            "ltr"
          ]
        }
      },
      {
        "name": "type",
        "type": "\"text\" | \"url\" | \"email\" | \"password\" | \"search\" | \"number\" | \"tel\"",
        "required": false,
        "origin": "own",
        "description": "`text` (default), `email` or `url`: the matching keyboard and autofill on phones.",
        "schema": {
          "type": "string",
          "enum": [
            "text",
            "url",
            "email",
            "password",
            "search",
            "number",
            "tel"
          ]
        }
      },
      {
        "name": "radius",
        "type": "ComponentRadius",
        "required": false,
        "origin": "own",
        "description": "Corner radius: `none`, `small`, `medium` (the design), `large` or `full`. The provider's default otherwise.",
        "schema": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium",
            "large",
            "full"
          ]
        }
      },
      {
        "name": "showStrength",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "description": "Four-segment meter with a word under it (create and reset only).",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "isRevealed",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "description": "Controlled visibility: `true` shows the value as text. Leave it out for the\ndefault, where the show / hide button alone decides; set it when the app\nwrites a value the person should see (a \"Generate\" button).",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "onRevealChange",
        "type": "(revealed: boolean) => void",
        "required": false,
        "origin": "own",
        "description": "Called with the next visibility when the show / hide button is pressed."
      },
      {
        "name": "onSubmit",
        "type": "(value: string) => void",
        "required": false,
        "origin": "dom",
        "description": "Handler that is called when the SearchField is submitted."
      },
      {
        "name": "onClear",
        "type": "() => void",
        "required": false,
        "origin": "dom",
        "description": "Handler that is called when the clear button is pressed."
      },
      {
        "name": "shortcut",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "A key hint shown at rest (\"/\"); the app binds the key.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "minValue",
        "type": "number",
        "required": false,
        "origin": "aria",
        "description": "The smallest value allowed for the input.",
        "schema": {
          "type": "number"
        }
      },
      {
        "name": "maxValue",
        "type": "number",
        "required": false,
        "origin": "aria",
        "description": "The largest value allowed for the input.",
        "schema": {
          "type": "number"
        }
      },
      {
        "name": "decrementAriaLabel",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "A custom aria-label for the decrement button. If not provided, the localized string \"Decrement\"\nis used.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "incrementAriaLabel",
        "type": "string",
        "required": false,
        "origin": "aria",
        "description": "A custom aria-label for the increment button. If not provided, the localized string \"Increment\"\nis used.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "isWheelDisabled",
        "type": "boolean",
        "required": false,
        "origin": "aria",
        "description": "Enables or disables changing the value with scroll.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "formatOptions",
        "type": "NumberFormatOptions",
        "required": false,
        "origin": "dom",
        "description": "Formatting options for the value displayed in the number field.\nThis also affects what characters are allowed to be typed by the user."
      },
      {
        "name": "commitBehavior",
        "type": "\"validate\" | \"snap\"",
        "required": false,
        "origin": "dom",
        "description": "Controls the behavior of the number field when the user blurs the field after editing. 'snap'\nwill clamp the value to the min/max values, and snap to the nearest step value. 'validate' will\nnot clamp the value, and will validate that the value is within the min/max range and on a\nvalid step.",
        "schema": {
          "type": "string",
          "enum": [
            "validate",
            "snap"
          ]
        }
      },
      {
        "name": "showStepper",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "description": "The stepper on the end, for small integers.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "currency",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "Money: an ISO 4217 code (\"EUR\"). The symbol becomes a leading addon and the\namount keeps two decimals, which reads as the design's \"€ 248,00\" (symbol\nfirst, with a space); Intl's own currency style has no space in tr / me.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "locale",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "Formats and parses in this locale instead of the provider's (the branch locale).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "country",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "Controlled ISO country. Left out, it is read from the value, then `defaultCountry`. A shared calling\ncode reads back as the table's first country for it (+1 → US): pass `country` to keep Canada.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "defaultCountry",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "The country an empty field opens on; by default the locale's region (\"de-AT\" → AT, \"en\" → US).",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "suggestedCountries",
        "type": "readonly string[]",
        "required": false,
        "origin": "own",
        "description": "ISO codes shown first, above \"All countries\" (the markets this form expects).",
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      {
        "name": "onUnsupportedInternationalPaste",
        "type": "(pasted: string) => void",
        "required": false,
        "origin": "own",
        "description": "A pasted international number whose country is not offered; the value stays unchanged."
      },
      {
        "name": "labels",
        "type": "{ country?: (country: string, callingCode: string) => string; countryList?: string; countrySearch?: string; countryEmpty?: (query: string) => React.ReactNode; suggestedCountries?: string; allCountries?: string; }",
        "required": false,
        "origin": "own",
        "description": "The field's words, already localized; the DS strings in the provider locale by default:\n- `country`: the country button's name, from the country's name and calling code (\"Country: Germany, +49\");\n- `countryList`: the country list's name, also its popover's (\"Country\");\n- `countrySearch`: the country search box's name (\"Search countries\");\n- `countryEmpty`: the list's empty result for the typed search (\"No results for “{query}”.\");\n- `suggestedCountries`: the first section's name, the `suggestedCountries` (\"Suggested countries\");\n- `allCountries`: the header above the rest when suggestions show (\"All countries\")."
      }
    ]
  },
  "tokens": [
    "ds-background-disabled",
    "ds-background-input",
    "ds-background-input-hovered",
    "ds-background-neutral",
    "ds-background-neutral-pressed",
    "ds-background-neutral-subtle-hovered",
    "ds-border",
    "ds-border-bold",
    "ds-border-danger",
    "ds-border-focused",
    "ds-easing-enter",
    "ds-easing-standard",
    "ds-icon-subtle",
    "ds-icon-success",
    "ds-icon-warning",
    "ds-radius-control-medium",
    "ds-radius-full",
    "ds-radius-medium",
    "ds-radius-small",
    "ds-size-control",
    "ds-size-control-compact",
    "ds-size-control-large",
    "ds-size-icon",
    "ds-space-050",
    "ds-space-075",
    "ds-space-100",
    "ds-space-150",
    "ds-space-200",
    "ds-surface-sunken",
    "ds-text",
    "ds-text-danger",
    "ds-text-disabled",
    "ds-text-subtle",
    "ds-text-subtlest",
    "ds-text-success",
    "ds-text-warning",
    "font-ds-mono"
  ],
  "strings": [
    "clear",
    "decrease",
    "hidePassword",
    "increase",
    "noMatch",
    "optional",
    "phoneAllCountries",
    "phoneCountry",
    "phoneCountryList",
    "phoneCountrySearch",
    "phoneSuggestedCountries",
    "phoneTooLong",
    "phoneTooShort",
    "required",
    "showPassword",
    "strength"
  ],
  "quality": {
    "tests": true,
    "a11y": false,
    "docs": false,
    "visual": false,
    "dark": false,
    "rtl": false,
    "mcp": true,
    "generic": true
  }
}
