@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
25 lines (24 loc) • 870 B
TypeScript
import React from 'react';
import type { TableAccordionContentRowProps } from './TableAccordionContent';
export type useTableAnimationHandlerProps = {
/**
* Ref to <div> inside the <tr> element being expanded/collapsed
*/
innerRef: React.MutableRefObject<HTMLDivElement>;
/**
* Ref to the <tr> element being clicked
*/
trRef: React.MutableRefObject<HTMLTableRowElement>;
};
export declare function useTableAnimationHandler({ innerRef, trRef, expanded, noAnimation, }: useTableAnimationHandlerProps & TableAccordionContentRowProps): {
ariaLive: any;
isInDOM: boolean;
isAnimating: boolean;
isVisibleParallax: boolean;
firstPaintStyle: {
readonly visibility: "hidden";
readonly opacity: "0";
readonly height: "auto";
} | Record<string, never>;
};
export default useTableAnimationHandler;