Skip to content

Commit

Permalink
docs(createsidepanel): adds aiLabel docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMelox committed Nov 20, 2024
1 parent e7a476a commit 054aa8a
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,31 @@ This includes the following:
You can find more information on how to validate your form fields in
[Carbon's Form usage page](https://www.carbondesignsystem.com/components/form/usage).`,
},
{
title: 'With AI Label',
description:
'An AI Label is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level. A Carbon AI Label can be provided to the Tearsheet component by including an `aiLabel` property on it and providing the carbon AILabel component as its own custom component.',
source: {
language: 'html',
code: `
<CreateSidePanel
{...args}
slug={
// carbon AILabel component
<AILabel
className="ai-label-container"
autoAlign={false}
align="bottom-right"
>
<AILabelContent>... ...</AILabelContent>
</AILabel>
}
>
...
</CreateSidePanel>
`,
},
},
]}
/>
);
Expand Down

0 comments on commit 054aa8a

Please sign in to comment.