diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index c7b1baa3af8a..116beb8ac547 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -1309,6 +1309,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "titleText": Object { "type": "node", }, @@ -2905,6 +2908,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "titleText": Object { "isRequired": true, "type": "node", @@ -3606,6 +3612,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "sortItems": Object { "type": "func", }, @@ -5189,6 +5198,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "sortItems": Object { "type": "func", }, @@ -5307,6 +5319,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "sortItems": Object { "type": "func", }, @@ -6507,6 +6522,9 @@ Map { ], "type": "oneOf", }, + "slug": Object { + "type": "node", + }, "warn": Object { "type": "bool", }, diff --git a/packages/react/src/components/ComboBox/ComboBox.tsx b/packages/react/src/components/ComboBox/ComboBox.tsx index 00060d69c922..6771ef8be1bf 100644 --- a/packages/react/src/components/ComboBox/ComboBox.tsx +++ b/packages/react/src/components/ComboBox/ComboBox.tsx @@ -10,7 +10,7 @@ import Downshift, { ControllerStateAndHelpers, StateChangeOptions, } from 'downshift'; -import PropTypes from 'prop-types'; +import PropTypes, { ReactNodeLike } from 'prop-types'; import React, { useContext, useEffect, @@ -281,6 +281,11 @@ export interface ComboBoxProps */ size?: ListBoxSize; + /** + * Provide a `Slug` component to be rendered inside the `ComboBox` component + */ + slug?: ReactNodeLike; + /** * Provide text to be used in a `