Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/StepButton/StepButton.d.ts 1.8 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
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
  import { OverrideProps } from "../OverridableComponent/index.js";
  import { Theme } from "../styles/index.js";
  import { StepButtonClasses } from "./stepButtonClasses.js";
  export interface StepButtonOwnProps {
    /**
     * Can be a `StepLabel` or a node to place inside `StepLabel` as children.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<StepButtonClasses>;
    /**
     * The icon displayed by the step label.
     */
    icon?: React.ReactNode;
    /**
     * The optional node to display.
     */
    optional?: React.ReactNode;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export type StepButtonTypeMap<AdditionalProps, RootComponent extends React.ElementType> = ExtendButtonBaseTypeMap<{
    props: AdditionalProps & StepButtonOwnProps;
    defaultComponent: RootComponent;
    ignoredProps: 'disabled';
  }>;
  
  /**
   *
   * Demos:
   *
   * - [Stepper](https://mui.com/material-ui/react-stepper/)
   *
   * API:
   *
   * - [StepButton API](https://mui.com/material-ui/api/step-button/)
   * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
   */
  declare const StepButton: ExtendButtonBase<StepButtonTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>>;
  export type StepButtonClasskey = keyof NonNullable<StepButtonProps['classes']>;
  export type StepButtonProps<RootComponent extends React.ElementType = ButtonBaseTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<StepButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export default StepButton;