{
  "id": "@typed/ui/index#Form.TextInput",
  "canonicalId": "@typed/ui/Form#TextInput",
  "symbol": {
    "id": "@typed/ui/index#Form.TextInput",
    "packageName": "@typed/ui",
    "moduleName": "index",
    "exportName": "Form.TextInput",
    "kind": "constant",
    "signatures": [
      "export declare const TextInput: InputComponent<string>;"
    ],
    "summary": "Binds a native `input[type=text]` to a string field.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import { TextInput, makeState } from \"@typed/ui/Form\"\nimport { Effect, Schema } from \"effect\"\n\nconst codec = Schema.Struct({ name: Schema.String })\nconst input = Effect.gen(function* () {\n  const state = yield* makeState(codec, { values: { name: \"\" } })\n  return TextInput({ state, name: \"name\" })\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Form.ts",
      "line": 801
    },
    "since": "1.0.0",
    "category": "Native controls"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/index#Form.TextInput",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "index",
    "consumerSpecifier": "@typed/ui/index",
    "exportName": "Form",
    "qualifiedName": "Form.TextInput",
    "declarationKey": "declaration:5049c0ab66720fd3ac311749",
    "family": "variable",
    "signatures": [
      "export declare const TextInput: InputComponent<string>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Form.ts",
        "start": {
          "line": 801,
          "column": 14
        },
        "end": {
          "line": 801,
          "column": 58
        }
      }
    ],
    "aliases": [
      "@typed/ui#Form.TextInput",
      "@typed/ui/Form#TextInput"
    ],
    "isAlias": true,
    "parentId": "@typed/ui/index#Form",
    "static": false,
    "importedFrom": "declaration:5049c0ab66720fd3ac311749"
  },
  "declaration": {
    "declarationKey": "declaration:5049c0ab66720fd3ac311749",
    "name": "TextInput",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const TextInput: InputComponent<string>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Form.ts",
            "start": {
              "line": 801,
              "column": 14
            },
            "end": {
              "line": 801,
              "column": 58
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const TextInput: InputComponent<string>;"
    ],
    "typeParameters": [],
    "summary": "Binds a native `input[type=text]` to a string field.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import { TextInput, makeState } from \"@typed/ui/Form\"\nimport { Effect, Schema } from \"effect\"\n\nconst codec = Schema.Struct({ name: Schema.String })\nconst input = Effect.gen(function* () {\n  const state = yield* makeState(codec, { values: { name: \"\" } })\n  return TextInput({ state, name: \"name\" })\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Form.ts",
        "start": {
          "line": 801,
          "column": 14
        },
        "end": {
          "line": 801,
          "column": 58
        }
      }
    ],
    "since": "1.0.0",
    "category": "Native controls"
  }
}
