UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

51 lines (47 loc) 1.24 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { InternalStandardProps as StandardProps } from '..'; import { Theme } from '../styles'; import { StepIconClasses } from './stepIconClasses'; export interface StepIconProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'> { /** * Whether this step is active. * @default false */ active?: boolean; /** * Override or extend the styles applied to the component. */ classes?: Partial<StepIconClasses>; /** * Mark the step as completed. Is passed to child components. * @default false */ completed?: boolean; /** * If `true`, the step is marked as failed. * @default false */ error?: boolean; /** * The label displayed in the step icon. */ icon: React.ReactNode; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; } export type StepIconClasskey = keyof NonNullable<StepIconProps['classes']>; /** * * Demos: * * - [Steppers](https://mui.com/components/steppers/) * * API: * * - [StepIcon API](https://mui.com/api/step-icon/) */ export default function StepIcon(props: StepIconProps): JSX.Element;