Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added StatusLight examples to Website #1823

Merged
merged 12 commits into from Feb 20, 2024
Expand Up @@ -3,6 +3,8 @@ import QuickNavContainer from "@/common/QuickNavContainer";
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import DocFooter from "@/common/DocFooter";
import TableCode from "@/common/TableCode";
import Example from "@/common/example/Example";
import basicUsage from "./examples/basicUsage";

const sections = [
{
Expand Down Expand Up @@ -38,9 +40,7 @@ const sections = [
<td>
<TableCode>string</TableCode>
</td>
<td>
An auxiliar text that will add some context to the status.
</td>
<td>An auxiliar text that will add some context to the status.</td>
<td>-</td>
</tr>
<tr>
Expand All @@ -52,7 +52,9 @@ const sections = [
Size of the component. Should be defined based on its importance
and/or available space.
</td>
<td><TableCode>'medium'</TableCode></td>
<td>
<TableCode>'medium'</TableCode>
</td>
</tr>
</tbody>
</DxcTable>
Expand All @@ -62,8 +64,8 @@ const sections = [
title: "Examples",
subSections: [
{
title: "Basic Usage",
content: <p>Examples are not available yet, they will be added soon.</p>
title: "Basic usage",
content: <Example example={basicUsage} defaultIsVisible />,
},
],
},
Expand Down
@@ -0,0 +1,21 @@
import {
DxcStatusLight,
DxcInset,
DxcFlex,
Mil4n0r marked this conversation as resolved.
Show resolved Hide resolved
} from "@dxc-technology/halstack-react";

const code = `() => {
return (
<DxcInset space="2rem">
<DxcStatusLight label="Accepted" mode="success" size="large" />
</DxcInset>
);
}`;

const scope = {
DxcFlex,
DxcInset,
DxcStatusLight,
};

export default { code, scope };