Import
import { tabIndex } from "@typed/ui/Composite";Signatures
export declare function tabIndex<CompositeState extends State, E, R>(state: RefSubject.RefSubject<CompositeState, E, R>, id: string): RefSubject.Computed<0 | -1, E, R>;Why
The operation exposes Composite’s transition directly so callers can compose it in Effect programs and native event handlers.
Ownership and lifetime
Creating the Computed value acquires nothing eagerly. The Scope that subscribes to it owns observation of the source RefSubject.
Example
Import with import { tabIndex } from "@typed/ui/Composite"; Extend the Composite.makeState
runnable setup. Inside the linked Effect
program read const value = yield* tabIndex(state, "item-2"); it is 0 only while that item
owns roving focus and is -1 under virtual focus.
Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.