UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

11 lines (10 loc) 509 B
import * as React from 'react'; export interface CompositeListContextValue<Metadata> { register: (node: Node, metadata: Metadata) => void; unregister: (node: Node) => void; map: Map<Node, Metadata | null>; elementsRef: React.RefObject<Array<HTMLElement | null>>; labelsRef?: React.RefObject<Array<string | null>>; } export declare const CompositeListContext: React.Context<CompositeListContextValue<any>>; export declare function useCompositeListContext(): CompositeListContextValue<any>;