UNPKG

@appbuckets/react-ui

Version:
18 lines (17 loc) 464 B
import * as React from 'react'; import type { TabsChangeHandler } from '../Tabs'; export declare type UseTabsChangeReturn = [ number, TabsChangeHandler, React.Dispatch<React.SetStateAction<number>> ]; /** * Use this hook to get automatically the active index * of a Tab Component. * Additionally function to force change will be returned * * @param initialValue */ export declare function useTabsChange( initialValue?: number ): UseTabsChangeReturn;