You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
741 B
18 lines
741 B
import React from 'react';
|
|
import Transition from 'react-transition-group/Transition';
|
|
import { TransitionCallbacks } from '@restart/ui/types';
|
|
declare type Dimension = 'height' | 'width';
|
|
export interface CollapseProps extends TransitionCallbacks, Pick<React.HTMLAttributes<HTMLElement>, 'role'> {
|
|
className?: string;
|
|
in?: boolean;
|
|
mountOnEnter?: boolean;
|
|
unmountOnExit?: boolean;
|
|
appear?: boolean;
|
|
timeout?: number;
|
|
dimension?: Dimension | (() => Dimension);
|
|
getDimensionValue?: (dimension: Dimension, element: HTMLElement) => number;
|
|
children: React.ReactElement;
|
|
}
|
|
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<Transition<any>>>;
|
|
export default Collapse;
|