UNPKG

@redocly/theme

Version:

Shared UI components lib

14 lines (13 loc) 514 B
type UseTabsProps = { initialTab: string; totalTabs: number; }; export declare function useTabs({ initialTab, totalTabs }: UseTabsProps): { activeTab: string; setActiveTab: import("react").Dispatch<import("react").SetStateAction<string>>; setTabRef: (element: HTMLButtonElement | null, index: number) => void; onTabClick: (label: string) => void; handleKeyboard: (event: React.KeyboardEvent, index: number) => void; getTabId: (label: string, index: number) => string; }; export {};