Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts 2.74 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
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { Theme } from "../styles/index.js";
  import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
  import { OverrideProps } from "../OverridableComponent/index.js";
  import { ListItemButtonClasses } from "./listItemButtonClasses.js";
  
  /**
   * This interface is kept for backward compatibility. To extend `LitItemButton`
   * props through module augmentation, use `ListItemButtonOwnProps`.
   */
  export interface ListItemButtonBaseProps {
    /**
     * Defines the `align-items` style property.
     * @default 'center'
     */
    alignItems?: 'flex-start' | 'center';
    /**
     * If `true`, the list item is focused during the first mount.
     * Focus will also be triggered if the value changes from false to true.
     * @default false
     */
    autoFocus?: boolean;
    /**
     * The content of the component if a `ListItemSecondaryAction` is used it must
     * be the last child.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<ListItemButtonClasses>;
    /**
     * If `true`, compact vertical padding designed for keyboard and mouse input is used.
     * The prop defaults to the value inherited from the parent List component.
     * @default false
     */
    dense?: boolean;
    /**
     * If `true`, the component is disabled.
     * @default false
     */
    disabled?: boolean;
    /**
     * If `true`, the left and right padding is removed.
     * @default false
     */
    disableGutters?: boolean;
    /**
     * If `true`, a 1px light border is added to the bottom of the list item.
     * @default false
     */
    divider?: boolean;
    /**
     * Use to apply selected styling.
     * @default false
     */
    selected?: boolean;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface ListItemButtonOwnProps extends ListItemButtonBaseProps {}
  export type ListItemButtonTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> = ExtendButtonBaseTypeMap<{
    props: AdditionalProps & ListItemButtonOwnProps;
    defaultComponent: RootComponent;
  }>;
  
  /**
   *
   * Demos:
   *
   * - [Lists](https://mui.com/material-ui/react-list/)
   *
   * API:
   *
   * - [ListItemButton API](https://mui.com/material-ui/api/list-item-button/)
   * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
   */
  declare const ListItemButton: ExtendButtonBase<ListItemButtonTypeMap>;
  export type ListItemButtonProps<RootComponent extends React.ElementType = ListItemButtonTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ListItemButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export default ListItemButton;