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.

10 lines (9 loc) 443 B
import * as React from 'react'; export interface SelectIndexContext { activeIndex: number | null; setActiveIndex: React.Dispatch<React.SetStateAction<number | null>>; selectedIndex: number | null; setSelectedIndex: React.Dispatch<React.SetStateAction<number | null>>; } export declare const SelectIndexContext: React.Context<SelectIndexContext | undefined>; export declare function useSelectIndexContext(): SelectIndexContext;