UNPKG

859 BTypeScriptView Raw
1import * as React from "react";
2import { TransitionProps } from "react-spring/renderprops";
3import { BoxProps } from "../Box";
4
5interface ISlideIn {
6 in: boolean;
7 offset?: string;
8 duration?: number;
9 children: (styles: Object) => React.ReactNode;
10}
11
12type SlideInProps = ISlideIn & TransitionProps<boolean>;
13export const SlideIn: React.FC<SlideInProps>;
14
15interface IScale {
16 in: boolean;
17 initialScale?: number;
18 duration?: number;
19 children: (styles: Object) => React.ReactNode;
20}
21
22type ScaleProps = IScale & TransitionProps<boolean>;
23export const Scale: React.FC<ScaleProps>;
24
25interface ISlide {
26 in: boolean;
27 finalHeight?: BoxProps["height"];
28 finalWidth?: BoxProps["maxWidth"];
29 duration?: number;
30 from: "bottom" | "top" | "left" | "right";
31}
32
33type SlideProps = ISlide & TransitionProps<boolean>;
34export const Slide: React.FC<SlideProps>;