UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

18 lines (17 loc) 662 B
import { ForwardedRef, MutableRefObject } from 'react'; type ReturnValueType = { optionsListRefCollection: ForwardedRef<unknown> | (({ ref, index }: { ref: any; index: any; }) => void); optionsListCollectionRef: MutableRefObject<HTMLElement[]>; height: string; }; type UseCustomHeightFromChildrensType = { limit: number; observer?: unknown[]; customCalcHeight?: (element: HTMLElement[]) => string; shouldCalculateHeight?: boolean; }; export declare const useCustomHeightFromChildrens: ({ limit, observer, customCalcHeight, shouldCalculateHeight, }: UseCustomHeightFromChildrensType) => ReturnValueType; export {};