pouncejs
Version:
A collection of UI components from Panther labs
22 lines (21 loc) • 623 B
TypeScript
import React from 'react';
import { BoxProps } from '../Box';
export interface CollapseProps extends Pick<BoxProps, 'as'> {
/** Whether the children are visible or collapsed */
open: boolean;
/**
* Whether the opacity should be animated along with the height
* @default true
* */
animateOpacity?: boolean;
/**
* The duration of the animation in ms
*
* @default Dynamic depending on the height
* */
duration?: number;
/** @ignore */
children: React.ReactElement;
}
declare const _default: React.NamedExoticComponent<CollapseProps>;
export default _default;