-
{children}
+
);
-};
+});
ListBoxMenuItem.propTypes = {
/**
@@ -46,6 +69,11 @@ ListBoxMenuItem.propTypes = {
* Specify whether the current menu item is "highlighed".
*/
isHighlighted: PropTypes.bool.isRequired,
+
+ /**
+ * Provide an optional tooltip for the ListBoxMenuItem
+ */
+ title: PropTypes.string,
};
ListBoxMenuItem.defaultProps = {
diff --git a/packages/react/src/components/ListBox/__tests__/__snapshots__/ListBoxMenu-test.js.snap b/packages/react/src/components/ListBox/__tests__/__snapshots__/ListBoxMenu-test.js.snap
index 52cc01053551..c9d75663e139 100644
--- a/packages/react/src/components/ListBox/__tests__/__snapshots__/ListBoxMenu-test.js.snap
+++ b/packages/react/src/components/ListBox/__tests__/__snapshots__/ListBoxMenu-test.js.snap
@@ -9,7 +9,7 @@ exports[`ListBoxMenu should render 1`] = `
id="test-listbox"
role="listbox"
>
-
@@ -22,7 +22,7 @@ exports[`ListBoxMenu should render 1`] = `
Hello
-