Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/MenuList/MenuList.d.ts 2.22 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
  import * as React from 'react';
  import { ExtendList, ExtendListTypeMap } from "../List/index.js";
  import { OverrideProps } from "../OverridableComponent/index.js";
  export interface MenuListOwnProps {
    /**
     * If `true`, will focus the `[role="menu"]` container and move into tab order.
     * @default false
     */
    autoFocus?: boolean;
    /**
     * If `true`, will focus the first menuitem if `variant="menu"` or selected item
     * if `variant="selectedMenu"`.
     * @default false
     */
    autoFocusItem?: boolean;
    /**
     * MenuList contents, normally `MenuItem`s.
     */
    children?: React.ReactNode;
    /**
     * If `true`, will allow focus on disabled items.
     * @default false
     */
    disabledItemsFocusable?: boolean;
    /**
     * If `true`, the menu items will not wrap focus.
     * @default false
     */
    disableListWrap?: boolean;
    /**
     * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
     * and the vertical alignment relative to the anchor element.
     * @default 'selectedMenu'
     */
    variant?: 'menu' | 'selectedMenu';
  }
  export type MenuListTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'ul'> = ExtendListTypeMap<{
    props: AdditionalProps & MenuListOwnProps;
    defaultComponent: RootComponent;
  }>;
  export type MenuListClassKey = keyof NonNullable<MenuListTypeMap['props']['classes']>;
  
  /**
   * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
   * It's exposed to help customization of the [`Menu`](https://mui.com/material-ui/api/menu/) component if you
   * use it separately you need to move focus into the component manually. Once
   * the focus is placed inside the component it is fully keyboard accessible.
   *
   * Demos:
   *
   * - [Menu](https://mui.com/material-ui/react-menu/)
   *
   * API:
   *
   * - [MenuList API](https://mui.com/material-ui/api/menu-list/)
   * - inherits [List API](https://mui.com/material-ui/api/list/)
   */
  declare const MenuList: ExtendList<MenuListTypeMap>;
  export type MenuListProps<RootComponent extends React.ElementType = MenuListTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<MenuListTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export default MenuList;