1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 | import { Orientation } from '../Stepper';
|
4 |
|
5 | export interface StepProps
|
6 | extends StandardProps<React.HTMLAttributes<HTMLDivElement>, StepClasskey> {
|
7 | /**
|
8 | * Sets the step as active. Is passed to child components.
|
9 | */
|
10 | active?: boolean;
|
11 | /**
|
12 | * Should be `Step` sub-components such as `StepLabel`, `StepContent`.
|
13 | */
|
14 | children?: React.ReactNode;
|
15 | /**
|
16 | * Mark the step as completed. Is passed to child components.
|
17 | */
|
18 | completed?: boolean;
|
19 | /**
|
20 | * Mark the step as disabled, will also disable the button if
|
21 | * `StepButton` is a child of `Step`. Is passed to child components.
|
22 | */
|
23 | disabled?: boolean;
|
24 | /**
|
25 | * Expand the step.
|
26 | */
|
27 | expanded?: boolean;
|
28 | }
|
29 |
|
30 | export type StepClasskey = 'root' | 'horizontal' | 'vertical' | 'alternativeLabel' | 'completed';
|
31 |
|
32 | /**
|
33 | *
|
34 | * Demos:
|
35 | *
|
36 | * - [Steppers](https://material-ui.com/components/steppers/)
|
37 | *
|
38 | * API:
|
39 | *
|
40 | * - [Step API](https://material-ui.com/api/step/)
|
41 | */
|
42 | export default function Step(props: StepProps): JSX.Element;
|