Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/Stepper/Stepper.d.ts 2.22 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
  import { Theme } from "../styles/index.js";
  import { PaperProps } from "../Paper/index.js";
  import { StepperClasses } from "./stepperClasses.js";
  export type Orientation = 'horizontal' | 'vertical';
  export interface StepperOwnProps extends Pick<PaperProps, 'elevation' | 'square' | 'variant'> {
    /**
     * Set the active step (zero based index).
     * Set to -1 to disable all the steps.
     * @default 0
     */
    activeStep?: number;
    /**
     * If set to 'true' and orientation is horizontal,
     * then the step label will be positioned under the icon.
     * @default false
     */
    alternativeLabel?: boolean;
    /**
     * Two or more `<Step />` components.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<StepperClasses>;
    /**
     * An element to be placed between each step.
     * @default <StepConnector />
     */
    connector?: React.ReactElement<unknown, any> | null;
    /**
     * If set the `Stepper` will not assist in controlling steps for linear flow.
     * @default false
     */
    nonLinear?: boolean;
    /**
     * The component orientation (layout flow direction).
     * @default 'horizontal'
     */
    orientation?: Orientation;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface StepperTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
    props: AdditionalProps & StepperOwnProps;
    defaultComponent: RootComponent;
  }
  export type StepperProps<RootComponent extends React.ElementType = StepperTypeMap['defaultComponent'], AdditionalProps = {
    component?: React.ElementType;
  }> = OverrideProps<StepperTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export type StepperClasskey = keyof NonNullable<StepperProps['classes']>;
  
  /**
   *
   * Demos:
   *
   * - [Stepper](https://mui.com/material-ui/react-stepper/)
   *
   * API:
   *
   * - [Stepper API](https://mui.com/material-ui/api/stepper/)
   */
  declare const Stepper: OverridableComponent<StepperTypeMap>;
  export default Stepper;