import * as React from 'react'; import { Omit } from '@material-ui/types'; import { Theme } from '../styles/createMuiTheme'; import { TransitionProps } from '../transitions/transition'; export interface GrowProps extends Omit { /** * A single child content element. */ children?: React.ReactElement; /** * If `true`, show the component; triggers the enter or exit animation. */ in?: boolean; /** */ onEnter?: TransitionProps['onEnter']; /** */ onExit?: TransitionProps['onExit']; ref?: React.Ref; /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. * * Set to 'auto' to automatically calculate transition time based on height. */ timeout?: TransitionProps['timeout'] | 'auto'; } /** * The Grow transition is used by the [Tooltip](https://material-ui.com/components/tooltips/) and * [Popover](https://material-ui.com/components/popover/) components. * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. * Demos: * * - [Popover](https://material-ui.com/components/popover/) * - [Transitions](https://material-ui.com/components/transitions/) * * API: * * - [Grow API](https://material-ui.com/api/grow/) * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props) */ export default function Grow(props: GrowProps): JSX.Element;