Skip to content

Commit

Permalink
feat: add types for stepLabel icon component props
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydigos committed Feb 13, 2024
1 parent bd64817 commit 9b865e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/mui-material/src/StepLabel/StepLabel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import { StepIconProps } from '../StepIcon';
import { Theme } from '../styles';
import { StepLabelClasses } from './stepLabelClasses';

export interface StepLabelIconComponentProps {
active: boolean;
completed: boolean;
error: boolean;
icon: number;
}

export interface StepLabelProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
/**
* In most cases will simply be a string containing a title for the label.
Expand Down Expand Up @@ -52,7 +59,7 @@ export interface StepLabelProps extends StandardProps<React.HTMLAttributes<HTMLD
/**
* The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
*/
StepIconComponent?: React.ElementType;
StepIconComponent?: React.ElementType<StepLabelIconComponentProps>;
/**
* Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
*/
Expand Down

0 comments on commit 9b865e5

Please sign in to comment.