{
  "id": "@typed/ui/Composite#rootTabIndex",
  "canonicalId": "@typed/ui/Composite#rootTabIndex",
  "symbol": {
    "id": "@typed/ui/Composite#rootTabIndex",
    "packageName": "@typed/ui",
    "moduleName": "Composite",
    "exportName": "rootTabIndex",
    "kind": "function",
    "signatures": [
      "export declare function rootTabIndex<CompositeState extends State, E, R>(state: RefSubject.RefSubject<CompositeState, E, R>): RefSubject.Computed<0 | -1, E, R>;"
    ],
    "summary": "Derives 0 when the root owns focus and -1 once a roving-focus item is active.",
    "sections": {
      "Why": "The operation exposes Composite's transition directly so callers can compose it in Effect\nprograms and native event handlers.",
      "Ownership and lifetime": "Creating the Computed value acquires nothing eagerly. The Scope that subscribes to it owns\nobservation of the source RefSubject.",
      "Example": "Import with `import { rootTabIndex } from \"@typed/ui/Composite\";` Extend the [Composite.makeState\nrunnable setup](/reference/%40typed%2Fui%2FComposite%23makeState). Inside the linked Effect\nprogram read `const value = yield* rootTabIndex(state)`; it is `0` while the root owns focus and\n`-1` after a roving-focus item becomes active."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Composite.ts",
      "line": 554
    },
    "since": "1.0.0",
    "category": "Keyboard focus"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Composite#rootTabIndex",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Composite",
    "consumerSpecifier": "@typed/ui/Composite",
    "exportName": "rootTabIndex",
    "qualifiedName": "rootTabIndex",
    "declarationKey": "declaration:11f6e5eb675090e2c4b6cde6",
    "family": "function",
    "signatures": [
      "export declare function rootTabIndex<CompositeState extends State, E, R>(state: RefSubject.RefSubject<CompositeState, E, R>): RefSubject.Computed<0 | -1, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 554,
          "column": 1
        },
        "end": {
          "line": 560,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Composite.rootTabIndex",
      "@typed/ui/index#Composite.rootTabIndex"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:11f6e5eb675090e2c4b6cde6",
    "name": "rootTabIndex",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function rootTabIndex<CompositeState extends State, E, R>(state: RefSubject.RefSubject<CompositeState, E, R>): RefSubject.Computed<0 | -1, E, R>;"
        ],
        "typeParameters": [
          "CompositeState extends State",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Composite.ts",
            "start": {
              "line": 554,
              "column": 1
            },
            "end": {
              "line": 560,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function rootTabIndex<CompositeState extends State, E, R>(state: RefSubject.RefSubject<CompositeState, E, R>): RefSubject.Computed<0 | -1, E, R>;"
    ],
    "typeParameters": [
      "CompositeState extends State",
      "E",
      "R"
    ],
    "summary": "Derives 0 when the root owns focus and -1 once a roving-focus item is active.",
    "sections": {
      "Why": "The operation exposes Composite's transition directly so callers can compose it in Effect\nprograms and native event handlers.",
      "Ownership and lifetime": "Creating the Computed value acquires nothing eagerly. The Scope that subscribes to it owns\nobservation of the source RefSubject.",
      "Example": "Import with `import { rootTabIndex } from \"@typed/ui/Composite\";` Extend the [Composite.makeState\nrunnable setup](/reference/%40typed%2Fui%2FComposite%23makeState). Inside the linked Effect\nprogram read `const value = yield* rootTabIndex(state)`; it is `0` while the root owns focus and\n`-1` after a roving-focus item becomes active."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 554,
          "column": 1
        },
        "end": {
          "line": 560,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Keyboard focus"
  }
}
