diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
index 638c99b2d459..6204f4abaa9e 100644
--- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
+++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
@@ -6830,6 +6830,9 @@ Map {
"className": Object {
"type": "string",
},
+ "decorator": Object {
+ "type": "node",
+ },
"defaultValue": Object {
"type": "any",
},
@@ -6878,9 +6881,7 @@ Map {
],
"type": "oneOf",
},
- "slug": Object {
- "type": "node",
- },
+ "slug": [Function],
"warn": Object {
"type": "bool",
},
diff --git a/packages/react/src/components/FluidSelect/FluidSelect.stories.js b/packages/react/src/components/FluidSelect/FluidSelect.stories.js
index 9c304367786f..633e9308ab08 100644
--- a/packages/react/src/components/FluidSelect/FluidSelect.stories.js
+++ b/packages/react/src/components/FluidSelect/FluidSelect.stories.js
@@ -14,7 +14,10 @@ import {
ToggletipButton,
ToggletipContent,
} from '../Toggletip';
-import { Information } from '@carbon/icons-react';
+import Button from '../Button';
+import { AILabel, AILabelContent, AILabelActions } from '../AILabel';
+import { IconButton } from '../IconButton';
+import { Information, View, FolderOpen, Folders } from '@carbon/icons-react';
import mdx from './FluidSelect.mdx';
export default {
@@ -113,6 +116,52 @@ export const Default = () => (
);
+const aiLabel = (
+
+
+
+
AI Explained
+
84%
+
Confidence score
+
+ Lorem ipsum dolor sit amet, di os consectetur adipiscing elit, sed do
+ eiusmod tempor incididunt ut fsil labore et dolore magna aliqua.
+
+
+
Model type
+
Foundation model
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
+
+export const withAILabel = () => (
+
+
+
+
+
+
+
+
+
+);
+
export const Playground = (args) => (
diff --git a/packages/react/src/components/Form/Form.stories.js b/packages/react/src/components/Form/Form.stories.js
index 506a6fe1f75e..c80a3339a377 100644
--- a/packages/react/src/components/Form/Form.stories.js
+++ b/packages/react/src/components/Form/Form.stories.js
@@ -365,7 +365,7 @@ export const withAILabel = (args) => {
id="select-1"
labelText="Select an option"
helperText="Optional helper text"
- slug={aiLabel}
+ decorator={aiLabel}
{...rest}>
{
/>
-
+
diff --git a/packages/react/src/components/Select/Select.stories.js b/packages/react/src/components/Select/Select.stories.js
index 0177dc80ac1f..baf83ad3a3ac 100644
--- a/packages/react/src/components/Select/Select.stories.js
+++ b/packages/react/src/components/Select/Select.stories.js
@@ -17,6 +17,7 @@ import { AILabel, AILabelContent, AILabelActions } from '../AILabel';
import { IconButton } from '../IconButton';
import { View, FolderOpen, Folders } from '@carbon/icons-react';
import mdx from './Select.mdx';
+import { Tooltip } from '../Tooltip';
export default {
title: 'Components/Select',
@@ -166,12 +167,12 @@ const aiLabel = (
);
export const withAILabel = () => (
-
+
@@ -332,6 +356,11 @@ Select.propTypes = {
*/
className: PropTypes.string,
+ /**
+ * **Experimental**: Provide a decorator component to be rendered inside the `Select` component
+ */
+ decorator: PropTypes.node,
+
/**
* Optionally provide the default value of the `