@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 • 598 B
TypeScript
import * as React from 'react';
export interface CompositeListContextValue<Metadata> {
register: (node: Element, metadata: Metadata) => void;
unregister: (node: Element) => void;
subscribeMapChange: (fn: (map: Map<Element, Metadata | null>) => void) => () => void;
elementsRef: React.RefObject<Array<HTMLElement | null>>;
labelsRef?: React.RefObject<Array<string | null>>;
nextIndexRef: React.RefObject<number>;
}
export declare const CompositeListContext: React.Context<CompositeListContextValue<any>>;
export declare function useCompositeListContext(): CompositeListContextValue<any>;