Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/MobileStepper/MobileStepper.d.ts 3.97 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { Theme } from "../styles/index.js";
  import { InternalStandardProps as StandardProps } from "../internal/index.js";
  import { PaperProps } from "../Paper/index.js";
  import { LinearProgressProps } from "../LinearProgress/index.js";
  import { MobileStepperClasses } from "./mobileStepperClasses.js";
  import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
  export interface MobileStepperSlots {
    /**
     * The component that renders the root slot.
     * @default Paper
     */
    root: React.ElementType;
    /**
     * The component that renders the progress slot.
     * @default LinearProgress
     */
    progress: React.ElementType;
    /**
     * The component that renders the dots slot.
     * @default 'div'
     */
    dots: React.ElementType;
    /**
     * The component that renders the dot slot.
     * @default 'div'
     */
    dot: React.ElementType;
  }
  export interface MobileStepperRootSlotPropsOverrides {}
  export interface MobileStepperProgressSlotPropsOverrides {}
  export interface MobileStepperDotsSlotPropsOverrides {}
  export interface MobileStepperDotSlotPropsOverrides {}
  export type MobileStepperSlotsAndSlotProps = CreateSlotsAndSlotProps<MobileStepperSlots, {
    /**
     * Props forwarded to the root slot.
     * By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
     */
    root: SlotProps<React.ElementType<PaperProps>, MobileStepperRootSlotPropsOverrides, MobileStepperOwnerState>;
    /**
     * Props forwarded to the progress slot.
     * By default, the available props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
     */
    progress: SlotProps<React.ElementType<LinearProgressProps>, MobileStepperProgressSlotPropsOverrides, MobileStepperOwnerState>;
    /**
     * Props forwarded to the dots slot.
     * By default, the available props are based on the div element.
     */
    dots: SlotProps<'div', MobileStepperDotsSlotPropsOverrides, MobileStepperOwnerState>;
    /**
     * Props forwarded to the dot slot.
     * By default, the available props are based on the div element.
     */
    dot: SlotProps<'div', MobileStepperDotSlotPropsOverrides, MobileStepperOwnerState>;
  }>;
  export interface MobileStepperProps extends StandardProps<PaperProps, 'children' | 'variant'>, MobileStepperSlotsAndSlotProps {
    /**
     * Set the active step (zero based index).
     * Defines which dot is highlighted when the variant is 'dots'.
     * @default 0
     */
    activeStep?: number;
    /**
     * A back button element. For instance, it can be a `Button` or an `IconButton`.
     */
    backButton: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<MobileStepperClasses>;
    /**
     * Props applied to the `LinearProgress` element.
     * @deprecated Use `slotProps.progress` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
     */
    LinearProgressProps?: Partial<LinearProgressProps>;
    /**
     * A next button element. For instance, it can be a `Button` or an `IconButton`.
     */
    nextButton: React.ReactNode;
    /**
     * Set the positioning type.
     * @default 'bottom'
     */
    position?: 'bottom' | 'top' | 'static';
    /**
     * The total steps.
     */
    steps: number;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
    /**
     * The variant to use.
     * @default 'dots'
     */
    variant?: 'text' | 'dots' | 'progress';
  }
  export interface MobileStepperOwnerState extends Omit<MobileStepperProps, 'slots' | 'slotProps'> {}
  
  /**
   *
   * Demos:
   *
   * - [Stepper](https://mui.com/material-ui/react-stepper/)
   *
   * API:
   *
   * - [MobileStepper API](https://mui.com/material-ui/api/mobile-stepper/)
   * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
   */
  export default function MobileStepper(props: MobileStepperProps): React.JSX.Element;