UNPKG

@base-ui/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.

15 lines 716 B
import * as React from 'react'; export interface CompositeListRegistration<Metadata> { metadata: Metadata | null; index: number | null; label: string | null | undefined; textRef: React.RefObject<HTMLElement | null> | undefined; } export interface CompositeListContextValue<Metadata> { register: (node: Element, registration: CompositeListRegistration<Metadata>) => void; unregister: (node: Element) => void; subscribeMapChange: (fn: (map: Map<Element, Metadata>) => void) => () => void; nextIndexRef: React.RefObject<number>; } export declare const CompositeListContext: React.Context<CompositeListContextValue<any>>; export declare function useCompositeListContext(): CompositeListContextValue<any>;