UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

22 lines (21 loc) 748 B
import { CSSProperties } from '../../core'; export declare function getElementHeight(el: React.RefObject<HTMLElement | null> | { current?: { scrollHeight: number; }; }): number | "auto"; interface UseCollapse { opened: boolean; transitionDuration?: number; transitionTimingFunction?: string; onTransitionEnd?: () => void; } interface GetCollapseProps { [key: string]: unknown; style?: CSSProperties; onTransitionEnd?: (e: TransitionEvent) => void; refKey?: string; ref?: React.ForwardedRef<HTMLDivElement>; } export declare function useCollapse({ transitionDuration, transitionTimingFunction, onTransitionEnd, opened, }: UseCollapse): (props: GetCollapseProps) => Record<string, any>; export {};