@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
12 lines (11 loc) • 314 B
TypeScript
import * as React from "react";
declare const useTransition: <T extends HTMLElement>({ show, appear, }: {
show: boolean;
appear?: boolean | undefined;
}) => {
ref: React.MutableRefObject<T | null>;
mounted: boolean;
state: "enter" | "leave";
done: boolean;
};
export default useTransition;