UNPKG

1.26 kBTypeScriptView Raw
1import * as React from 'react';
2import { SxProps } from '@mui/system';
3import { InternalStandardProps as StandardProps } from '..';
4import { Theme } from '../styles';
5import { StepIconClasses } from './stepIconClasses';
6
7export interface StepIconProps
8 extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'> {
9 /**
10 * Whether this step is active.
11 * @default false
12 */
13 active?: boolean;
14 /**
15 * Override or extend the styles applied to the component.
16 */
17 classes?: Partial<StepIconClasses>;
18 /**
19 * Mark the step as completed. Is passed to child components.
20 * @default false
21 */
22 completed?: boolean;
23 /**
24 * If `true`, the step is marked as failed.
25 * @default false
26 */
27 error?: boolean;
28 /**
29 * The label displayed in the step icon.
30 */
31 icon: React.ReactNode;
32 /**
33 * The system prop that allows defining system overrides as well as additional CSS styles.
34 */
35 sx?: SxProps<Theme>;
36}
37
38export type StepIconClasskey = keyof NonNullable<StepIconProps['classes']>;
39
40/**
41 *
42 * Demos:
43 *
44 * - [Stepper](https://mui.com/material-ui/react-stepper/)
45 *
46 * API:
47 *
48 * - [StepIcon API](https://mui.com/material-ui/api/step-icon/)
49 */
50export default function StepIcon(props: StepIconProps): React.JSX.Element;