UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

51 lines (48 loc) 1.64 kB
import * as React from 'react'; import { TransitionProps } from '../transitions/transition'; export interface GrowProps extends Omit<TransitionProps, 'timeout'> { /** * Perform the enter transition when it first mounts if `in` is also `true`. * Set this to `false` to disable this behavior. * @default true */ appear?: boolean; /** * A single child content element. */ children: React.ReactElement<any, any>; /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. */ easing?: TransitionProps['easing']; /** * If `true`, the component will transition in. */ in?: boolean; ref?: React.Ref<unknown>; /** * 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. * @default 'auto' */ timeout?: TransitionProps['timeout'] | 'auto'; } /** * The Grow transition is used by the [Tooltip](https://mui.com/components/tooltips/) and * [Popover](https://mui.com/components/popover/) components. * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. * * Demos: * * - [Popover](https://mui.com/components/popover/) * - [Transitions](https://mui.com/components/transitions/) * * API: * * - [Grow API](https://mui.com/api/grow/) * - inherits [Transition API](http://reactcommunity.org/react-transition-group/transition/#Transition-props) */ export default function Grow(props: GrowProps): JSX.Element;