@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.
10 lines • 383 B
TypeScript
import * as React from 'react';
export interface SelectItemContext {
selected: boolean;
indexRef: React.RefObject<number>;
textRef: React.RefObject<HTMLElement | null>;
selectedByFocus: boolean;
hasRegistered: boolean;
}
export declare const SelectItemContext: React.Context<SelectItemContext | undefined>;
export declare function useSelectItemContext(): SelectItemContext;