Files
madbase/control-plane-ui/node_modules/@mui/material/Step/Step.d.ts
Vlad Durnea cffdf8af86
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
wip:milestone 0 fixes
2026-03-15 12:35:42 +02:00

80 lines
2.1 KiB
TypeScript

import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
import { Theme } from '../styles';
import { StepClasses } from './stepClasses';
export interface StepOwnProps {
/**
* Sets the step as active. Is passed to child components.
*/
active?: boolean;
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<StepClasses>;
/**
* Mark the step as completed. Is passed to child components.
*/
completed?: boolean;
/**
* If `true`, the step is disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled?: boolean;
/**
* Expand the step.
* @default false
*/
expanded?: boolean;
/**
* The position of the step.
* The prop defaults to the value inherited from the parent Stepper component.
*/
index?: number;
/**
* If `true`, the Step is displayed as rendered last.
* The prop defaults to the value inherited from the parent Stepper component.
*/
last?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
export interface StepTypeMap<
AdditionalProps = {},
RootComponent extends React.ElementType = 'div',
> {
props: AdditionalProps & StepOwnProps;
defaultComponent: RootComponent;
}
export type StepProps<
RootComponent extends React.ElementType = StepTypeMap['defaultComponent'],
AdditionalProps = { component?: React.ElementType },
> = OverrideProps<StepTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export type StepClasskey = keyof NonNullable<StepProps['classes']>;
/**
*
* Demos:
*
* - [Stepper](https://mui.com/material-ui/react-stepper/)
*
* API:
*
* - [Step API](https://mui.com/material-ui/api/step/)
*/
declare const Step: OverridableComponent<StepTypeMap>;
export default Step;