{
  "id": "@typed/ui/Dialog#Trigger",
  "canonicalId": "@typed/ui/Dialog#Trigger",
  "symbol": {
    "id": "@typed/ui/Dialog#Trigger",
    "packageName": "@typed/ui",
    "moduleName": "Dialog",
    "exportName": "Trigger",
    "kind": "function",
    "signatures": [
      "export declare function Trigger<const Options extends TriggerOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, TriggerInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "summary": "Renders a native button that opens dialog content.",
    "sections": {
      "Why": "It preserves button semantics, real events, and ARIA relationship state.\nSupplying `controls` selects native `commandfor` / `show-modal` behavior and\ndisables the Fx click fallback, so that form requires browser command support.\nOmitting `controls` installs the portable state-driven click handler.",
      "Ownership and lifetime": "Running the Fx owns reactive props/listeners in its Scope. A custom host must\npreserve button type, ARIA, command, click props, and content."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Dialog from \"@typed/ui/Dialog\"\n\nconst program = Effect.gen(function* () {\n  const state = yield* Dialog.makeState()\n  // Omitting controls selects the Fx state fallback.\n  return Dialog.Trigger({ state, content: \"Open\" })\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Dialog.ts",
      "line": 278
    },
    "since": "1.0.0",
    "category": "Opening controls"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Dialog#Trigger",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Dialog",
    "consumerSpecifier": "@typed/ui/Dialog",
    "exportName": "Trigger",
    "qualifiedName": "Trigger",
    "declarationKey": "declaration:1bf9c5cb39fa46cc6463df37",
    "family": "function",
    "signatures": [
      "export declare function Trigger<const Options extends TriggerOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, TriggerInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dialog.ts",
        "start": {
          "line": 278,
          "column": 1
        },
        "end": {
          "line": 306,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Dialog.Trigger",
      "@typed/ui/index#Dialog.Trigger"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:1bf9c5cb39fa46cc6463df37",
    "name": "Trigger",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function Trigger<const Options extends TriggerOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, TriggerInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
        ],
        "typeParameters": [
          "const Options extends TriggerOptions",
          "const Host extends HostResult = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Dialog.ts",
            "start": {
              "line": 278,
              "column": 1
            },
            "end": {
              "line": 306,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function Trigger<const Options extends TriggerOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, TriggerInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "typeParameters": [
      "const Options extends TriggerOptions",
      "const Host extends HostResult = never"
    ],
    "summary": "Renders a native button that opens dialog content.",
    "sections": {
      "Why": "It preserves button semantics, real events, and ARIA relationship state.\nSupplying `controls` selects native `commandfor` / `show-modal` behavior and\ndisables the Fx click fallback, so that form requires browser command support.\nOmitting `controls` installs the portable state-driven click handler.",
      "Ownership and lifetime": "Running the Fx owns reactive props/listeners in its Scope. A custom host must\npreserve button type, ARIA, command, click props, and content."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Dialog from \"@typed/ui/Dialog\"\n\nconst program = Effect.gen(function* () {\n  const state = yield* Dialog.makeState()\n  // Omitting controls selects the Fx state fallback.\n  return Dialog.Trigger({ state, content: \"Open\" })\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dialog.ts",
        "start": {
          "line": 278,
          "column": 1
        },
        "end": {
          "line": 306,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Opening controls"
  }
}
