{
  "id": "@typed/ui#Disclosure.Content",
  "canonicalId": "@typed/ui/Disclosure#Content",
  "symbol": {
    "id": "@typed/ui#Disclosure.Content",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Disclosure.Content",
    "kind": "function",
    "signatures": [
      "export declare function Content<const Options extends ContentOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, ContentInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "summary": "Renders native details content synchronized with hydrated state.",
    "sections": {
      "Why": "Native disclosure behavior, semantics, and `toggle` events stay intact while\nEffect state can control or observe visibility.",
      "Ownership and lifetime": "Running the Fx owns the native listener and scoped observer. A custom host\nmust preserve the toggle handler and exactly one composed hydration ref."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Disclosure from \"@typed/ui/Disclosure\"\n\nconst program = Effect.gen(function* () {\n  const state = yield* Disclosure.makeState()\n  return Disclosure.Content({\n    state,\n    content: Disclosure.Button({ content: \"More\" })\n  })\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Disclosure.ts",
      "line": 265
    },
    "since": "1.0.0",
    "category": "Native content host"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Disclosure.Content",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Disclosure",
    "qualifiedName": "Disclosure.Content",
    "declarationKey": "declaration:abc776b771598cdfe7c88f49",
    "family": "function",
    "signatures": [
      "export declare function Content<const Options extends ContentOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, ContentInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Disclosure.ts",
        "start": {
          "line": 265,
          "column": 1
        },
        "end": {
          "line": 289,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Disclosure#Content",
      "@typed/ui/index#Disclosure.Content"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Disclosure",
    "static": false,
    "importedFrom": "declaration:abc776b771598cdfe7c88f49"
  },
  "declaration": {
    "declarationKey": "declaration:abc776b771598cdfe7c88f49",
    "name": "Content",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function Content<const Options extends ContentOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, ContentInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
        ],
        "typeParameters": [
          "const Options extends ContentOptions",
          "const Host extends HostResult = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Disclosure.ts",
            "start": {
              "line": 265,
              "column": 1
            },
            "end": {
              "line": 289,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function Content<const Options extends ContentOptions, const Host extends HostResult = never>(options: Options, host?: Dom.HostOverride<Dom.RenderHostProps<Options, ContentInternalProps<Options>>, Options[\"content\"], Host>): Fx<RenderEvent, Renderable.Error<Options | Host>, Renderable.Services<Options | Host> | Scope.Scope | RenderTemplate>;"
    ],
    "typeParameters": [
      "const Options extends ContentOptions",
      "const Host extends HostResult = never"
    ],
    "summary": "Renders native details content synchronized with hydrated state.",
    "sections": {
      "Why": "Native disclosure behavior, semantics, and `toggle` events stay intact while\nEffect state can control or observe visibility.",
      "Ownership and lifetime": "Running the Fx owns the native listener and scoped observer. A custom host\nmust preserve the toggle handler and exactly one composed hydration ref."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Disclosure from \"@typed/ui/Disclosure\"\n\nconst program = Effect.gen(function* () {\n  const state = yield* Disclosure.makeState()\n  return Disclosure.Content({\n    state,\n    content: Disclosure.Button({ content: \"More\" })\n  })\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Disclosure.ts",
        "start": {
          "line": 265,
          "column": 1
        },
        "end": {
          "line": 289,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Native content host"
  }
}
