We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d01125 commit eee312aCopy full SHA for eee312a
src/components/Menu/MenuItem.tsx
@@ -15,6 +15,7 @@ import React, {
15
SVGAttributes,
16
useCallback,
17
useContext,
18
+ MouseEventHandler,
19
} from "react";
20
import styles from "./MenuItem.module.css";
21
import { Text } from "../Typography/Text";
@@ -59,7 +60,7 @@ type Props<C extends MenuItemElement> = {
59
60
* Event callback for when the item is clicked.
61
* @param e
62
*/
- onClick?: (e: Event) => void;
63
+ onClick?: MouseEventHandler<C>;
64
/**
65
* The color variant of the menu item.
66
* @default primary
0 commit comments