@ssgoi/react
Version:
React bindings for SSGOI - Native app-like page transitions for React applications
11 lines (10 loc) • 472 B
TypeScript
import { CSSProperties } from 'react';
/**
* Combines multiple ref callbacks into one
*/
export declare function combineRefs<T>(...refs: Array<((el: T | null) => void) | null | undefined>): (el: T | null) => void;
/**
* Forks style from element.style based on initialStyle keys
* Returns the current DOM style values for keys that were in initialStyle
*/
export declare function forkStyleFromElement(element: HTMLElement, initialStyle: CSSProperties): CSSProperties;