Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/StepContent/StepContent.d.ts 3.24 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
  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 { CollapseProps } from "../Collapse/index.js";
  import { TransitionProps } from "../transitions/transition.js";
  import { StepContentClasses } from "./stepContentClasses.js";
  import { CreateSlotsAndSlotProps, SlotComponentProps } from "../utils/types.js";
  export interface StepContentSlots {
    /**
     * The component that renders the transition slot.
     * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
     * @default Collapse
     */
    transition?: React.JSXElementConstructor<TransitionProps & {
      children?: React.ReactElement<unknown, any>;
    }>;
  }
  export type StepContentSlotsAndSlotProps = CreateSlotsAndSlotProps<StepContentSlots, {
    /**
     * Props forwarded to the transition slot.
     * By default, the available props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component
     */
    transition: SlotComponentProps<React.ElementType, CollapseProps, StepContentOwnerState>;
  }>;
  export interface StepContentOwnerState extends StepContentProps {}
  export interface StepContentProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>>, StepContentSlotsAndSlotProps {
    /**
     * The content of the component.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<StepContentClasses>;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
    /**
     * The component used for the transition.
     * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
     * @default Collapse
     * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
     */
    TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
      children: React.ReactElement<unknown, any>;
    }>;
    /**
     * Adjust the duration of the content expand transition.
     * Passed as a prop to the transition component.
     *
     * Set to 'auto' to automatically calculate transition time based on height.
     * @default 'auto'
     */
    transitionDuration?: TransitionProps['timeout'] | 'auto';
    /**
     * Props applied to the transition element.
     * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
     * @deprecated Use `slotProps.transition` 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.
     */
    TransitionProps?: TransitionProps;
  }
  export type StepContentClasskey = keyof NonNullable<StepContentProps['classes']>;
  
  /**
   *
   * Demos:
   *
   * - [Stepper](https://mui.com/material-ui/react-stepper/)
   *
   * API:
   *
   * - [StepContent API](https://mui.com/material-ui/api/step-content/)
   */
  export default function StepContent(props: StepContentProps): React.JSX.Element;