UNPKG

980 BTypeScriptView Raw
1import * as React from 'react';
2export interface MenuItemActionProps extends Omit<React.HTMLProps<HTMLButtonElement>, 'type' | 'ref'> {
3 /** Additional classes added to the action button */
4 className?: string;
5 /** The action icon to use */
6 icon?: 'favorites' | React.ReactNode;
7 /** Callback on action click, can also specify onActionClick on the Menu instead */
8 onClick?: (event?: any) => void;
9 /** Accessibility label */
10 'aria-label'?: string;
11 /** Flag indicating if the item is favorited */
12 isFavorited?: boolean;
13 /** Disables action, can also be specified on the MenuItem instead */
14 isDisabled?: boolean;
15 /** Identifies the action item in the onActionClick on the Menu */
16 actionId?: any;
17 /** Forwarded ref */
18 innerRef?: React.Ref<any>;
19}
20export declare const MenuItemAction: React.ForwardRefExoticComponent<MenuItemActionProps & React.RefAttributes<HTMLButtonElement>>;
21//# sourceMappingURL=MenuItemAction.d.ts.map
\No newline at end of file