Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/List/List.d.ts 2.1 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
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { Theme } from "../styles/index.js";
  import { OverridableComponent, OverridableTypeMap, OverrideProps } from "../OverridableComponent/index.js";
  import { ListClasses } from "./listClasses.js";
  export interface ListOwnProps {
    /**
     * The content of the component.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<ListClasses>;
    /**
     * If `true`, compact vertical padding designed for keyboard and mouse input is used for
     * the list and list items.
     * The prop is available to descendant components as the `dense` context.
     * @default false
     */
    dense?: boolean;
    /**
     * If `true`, vertical padding is removed from the list.
     * @default false
     */
    disablePadding?: boolean;
    /**
     * The content of the subheader, normally `ListSubheader`.
     */
    subheader?: React.ReactNode;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface ListTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'ul'> {
    props: AdditionalProps & ListOwnProps;
    defaultComponent: RootComponent;
  }
  
  /**
   * utility to create component types that inherit props from List.
   */
  export interface ExtendListTypeMap<TypeMap extends OverridableTypeMap> {
    props: TypeMap['props'] & ListTypeMap['props'];
    defaultComponent: TypeMap['defaultComponent'];
  }
  export type ExtendList<TypeMap extends OverridableTypeMap> = OverridableComponent<ExtendListTypeMap<TypeMap>>;
  
  /**
   *
   * Demos:
   *
   * - [Lists](https://mui.com/material-ui/react-list/)
   * - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
   *
   * API:
   *
   * - [List API](https://mui.com/material-ui/api/list/)
   */
  declare const List: ExtendList<ListTypeMap>;
  export type ListProps<RootComponent extends React.ElementType = ListTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ListTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export default List;