You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
843 B
19 lines
843 B
import * as React from 'react';
|
|
import type { MenuClickEventHandler, MenuHoverEventHandler, RenderIconType } from './interface';
|
|
export interface MenuItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onSelect'> {
|
|
children?: React.ReactNode;
|
|
/** @private Internal filled key. Do not set it directly */
|
|
eventKey?: string;
|
|
/** @private Do not use. Private warning empty usage */
|
|
warnKey?: boolean;
|
|
disabled?: boolean;
|
|
itemIcon?: RenderIconType;
|
|
/** @deprecated No place to use this. Should remove */
|
|
attribute?: Record<string, string>;
|
|
onMouseEnter?: MenuHoverEventHandler;
|
|
onMouseLeave?: MenuHoverEventHandler;
|
|
onClick?: MenuClickEventHandler;
|
|
}
|
|
declare function MenuItem(props: MenuItemProps): React.ReactElement;
|
|
export default MenuItem;
|