1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 | import { Orientation } from '../Stepper';
|
4 | import { TransitionProps } from '../transitions/transition';
|
5 |
|
6 | export 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 |
|
30 | export 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 | */
|
42 | export default function StepContent(props: StepContentProps): JSX.Element;
|