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 502 B
import * as React from 'react'; import type { TabsRoot } from "../root/TabsRoot.js"; export interface TabsListContext { activateOnFocus: boolean; highlightedTabIndex: number; onTabActivation: (newValue: any, eventDetails: TabsRoot.ChangeEventDetails) => void; setHighlightedTabIndex: (index: number) => void; tabsListElement: HTMLElement | null; } export declare const TabsListContext: React.Context<TabsListContext | undefined>; export declare function useTabsListContext(): TabsListContext;