1 | import React from 'react';
|
2 | import Transition from 'react-transition-group/Transition';
|
3 | import { TransitionCallbacks } from '@restart/ui/types';
|
4 | type Dimension = 'height' | 'width';
|
5 | export interface CollapseProps extends TransitionCallbacks, Pick<React.HTMLAttributes<HTMLElement>, 'role'> {
|
6 | className?: string;
|
7 | in?: boolean;
|
8 | mountOnEnter?: boolean;
|
9 | unmountOnExit?: boolean;
|
10 | appear?: boolean;
|
11 | timeout?: number;
|
12 | dimension?: Dimension | (() => Dimension);
|
13 | getDimensionValue?: (dimension: Dimension, element: HTMLElement) => number;
|
14 | children: React.ReactElement;
|
15 | }
|
16 | declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<Transition<any>>>;
|
17 | export default Collapse;
|