From 25e2e795f7434fd2fb910eec4a199d92602d5bef Mon Sep 17 00:00:00 2001 From: Sangeetha Babu <58620134+sangeethababu9223@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:34:23 +0530 Subject: [PATCH] fix(createTearsheet): slug file restore --- .../src/global/js/story-parts/slug.jsx | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 packages/ibm-products/src/global/js/story-parts/slug.jsx diff --git a/packages/ibm-products/src/global/js/story-parts/slug.jsx b/packages/ibm-products/src/global/js/story-parts/slug.jsx new file mode 100644 index 0000000000..c97b3f3129 --- /dev/null +++ b/packages/ibm-products/src/global/js/story-parts/slug.jsx @@ -0,0 +1,52 @@ +/** + * Copyright IBM Corp. 2024, 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +import React from 'react'; +import { + unstable__Slug as Slug, + unstable__SlugContent as SlugContent, +} from '@carbon/react'; + +export const SlugSample = (props) => ( + + +
+

AI Explained

+

84%

+

Confidence score

+

+ This is not really Lorem Ipsum but the spell checker did not like the + previous text with it's non-words which is why this unwieldy + sentence, should one choose to call it that, here. +

+
+

Model type

+

Foundation model

+
+
+
+); + +export const slugArgTypes = ({ _default = 0, withHollow = false } = {}) => { + const slug = { + control: { + type: 'select', + labels: { + 0: 'No AI slug', + 1: 'with AI Slug', + }, + default: _default, + }, + options: [0, 1], + }; + + if (withHollow) { + slug.control.labels[2] = 'with hollow AI Slug (boolean)'; + slug.options.push(2); + } + return { slug }; +};