UNPKG

@appbuckets/react-ui

Version:
18 lines (17 loc) 552 B
import * as React from 'react'; import type { AccordionSectionChangeHandler } from '../Accordions'; export declare type UseAccordionSectionChangeReturn = [ number[], AccordionSectionChangeHandler, React.Dispatch<React.SetStateAction<number[]>> ]; /** * Use this hook to get automatically the active indexes * of an Accordion Component. * Additionally function to force change will be returned * * @param initialValue */ export declare function useAccordionSectionChange( initialValue?: number[] | null ): UseAccordionSectionChangeReturn;