Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/PigmentStack/PigmentStack.d.ts 1.64 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
  import * as React from 'react';
  import { OverridableComponent, OverrideProps } from '@mui/types';
  import { SxProps } from '@mui/system';
  import { Breakpoint, Theme } from "../styles/index.js";
  type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
  export interface PigmentStackOwnProps {
    /**
     * The content of the component.
     */
    children?: React.ReactNode;
    /**
     * Defines the `flex-direction` style property.
     * It is applied for all screen sizes.
     * @default 'column'
     */
    direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
    /**
     * Defines the space between immediate children.
     * @default 0
     */
    spacing?: ResponsiveStyleValue<number | string>;
    /**
     * Add an element between each child.
     */
    divider?: React.ReactNode;
    /**
     * The system prop, which allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface PigmentStackTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
    props: AdditionalProps & PigmentStackOwnProps;
    defaultComponent: RootComponent;
  }
  export type PigmentStackProps<RootComponent extends React.ElementType = PigmentStackTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<PigmentStackTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  /**
   *
   * Demos:
   *
   * - [Stack](https://mui.com/material-ui/react-stack/)
   *
   * API:
   *
   * - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
   */
  declare const PigmentStack: OverridableComponent<PigmentStackTypeMap>;
  export default PigmentStack;