UNPKG

864 BTypeScriptView Raw
1import * as React from 'react';
2export interface OptionsMenuItemProps extends Omit<React.HTMLProps<HTMLAnchorElement>, 'onSelect' | 'onClick' | 'onKeyDown' | 'type'> {
3 /** Anything which can be rendered as an options menu item */
4 children?: React.ReactNode;
5 /** Classes applied to root element of an options menu item */
6 className?: string;
7 /** Render options menu item as selected */
8 isSelected?: boolean;
9 /** Render options menu item as disabled option */
10 isDisabled?: boolean;
11 /** Callback for when this options menu item is selected */
12 onSelect?: (event?: React.MouseEvent<HTMLAnchorElement> | React.KeyboardEvent) => void;
13 /** Unique id of this options menu item */
14 id?: string;
15}
16export declare const OptionsMenuItem: React.FunctionComponent<OptionsMenuItemProps>;
17//# sourceMappingURL=OptionsMenuItem.d.ts.map
\No newline at end of file