Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99622280
MenuItem.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 25, 20:12
Size
1 KB
Mime Type
text/x-java
Expires
Mon, Jan 27, 20:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23834525
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
MenuItem.d.ts
View Options
import { SxProps } from '@mui/system';
import { Theme } from '../styles';
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
import { OverrideProps } from '../OverridableComponent';
import { MenuItemClasses } from './menuItemClasses';
export type MenuItemTypeMap<P = {}, D extends React.ElementType = 'li'> = ExtendButtonBaseTypeMap<{
props: P & {
/**
* 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;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<MenuItemClasses>;
/**
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
* The prop defaults to the value inherited from the parent Menu 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 menu 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>;
};
defaultComponent: D;
}>;
/**
*
* Demos:
*
* - [Menu](https://mui.com/material-ui/react-menu/)
*
* API:
*
* - [MenuItem API](https://mui.com/material-ui/api/menu-item/)
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
*/
declare const MenuItem: ExtendButtonBase<MenuItemTypeMap>;
export type MenuItemProps<
D extends React.ElementType = MenuItemTypeMap['defaultComponent'],
P = {},
> = OverrideProps<MenuItemTypeMap<P, D>, D>;
export default MenuItem;
Event Timeline
Log In to Comment