UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

49 lines (48 loc) 1.69 kB
import * as React from 'react'; import { TransitionProps } from "../transitions/transition.js"; export interface ZoomProps extends TransitionProps { /** * 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 | undefined; /** * A single child content element. */ children: React.ReactElement<unknown, any>; /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. */ easing?: TransitionProps['easing'] | undefined; /** * If `true`, the component will transition in. */ in?: boolean | undefined; ref?: React.Ref<unknown> | undefined; /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. * @default { * enter: theme.transitions.duration.enteringScreen, * exit: theme.transitions.duration.leavingScreen, * } */ timeout?: TransitionProps['timeout'] | undefined; } /** * The Zoom transition can be used for the floating variant of the * [Button](https://mui.com/material-ui/react-floating-action-button/#animation) component. * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally. * * Demos: * * - [Transitions](https://mui.com/material-ui/transitions/) * * API: * * - [Zoom API](https://mui.com/material-ui/api/zoom/) * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props) */ export default function Zoom(props: ZoomProps): React.JSX.Element;