UNPKG

1.34 kBTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { Orientation } from '../Stepper';
4import { TransitionProps } from '../transitions/transition';
5
6export interface StepContentProps
7 extends StandardProps<React.HTMLAttributes<HTMLDivElement>, StepContentClasskey> {
8 /**
9 * Step content.
10 */
11 children?: React.ReactNode;
12 /**
13 * The component used for the transition.
14 * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
15 */
16 TransitionComponent?: React.ComponentType<TransitionProps>;
17 /**
18 * Adjust the duration of the content expand transition.
19 * Passed as a prop to the transition component.
20 *
21 * Set to 'auto' to automatically calculate transition time based on height.
22 */
23 transitionDuration?: TransitionProps['timeout'] | 'auto';
24 /**
25 * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
26 */
27 TransitionProps?: TransitionProps;
28}
29
30export type StepContentClasskey = 'root' | 'last' | 'transition';
31
32/**
33 *
34 * Demos:
35 *
36 * - [Steppers](https://mui.com/components/steppers/)
37 *
38 * API:
39 *
40 * - [StepContent API](https://mui.com/api/step-content/)
41 */
42export default function StepContent(props: StepContentProps): JSX.Element;