An open source design system that's fully customizable and agent ready
TypeScript
feat(sandbox): add headerEndContent toggle to shell lab (#1834)
Cindy Zhang58adeaef163a
diff --git a/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx b/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsxindex f66893be12..6a5623b6c1 100644--- a/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx+++ b/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx@@ -127,6 +127,7 @@ interface ShellConfig {showSuperheading: boolean;showSubheading: boolean;headingIconStyle: 'navicon' | 'icon' | 'none';+ showHeaderEndContent: boolean;showNestedItems: boolean;isCollapsible: boolean;isResizable: boolean;@@ -156,6 +157,7 @@ const DEFAULT_CONFIG: ShellConfig = {showSuperheading: false,showSubheading: false,headingIconStyle: 'navicon',+ showHeaderEndContent: false,showNestedItems: true,isCollapsible: true,isResizable: false,@@ -280,6 +282,11 @@ function ConfigPanel({value={config.showSubheading}onChange={v => onChange({showSubheading: v})}/>+ <ToggleRow+ label="Header End Content"+ value={config.showHeaderEndContent}+ onChange={v => onChange({showHeaderEndContent: v})}+ /><ToggleRowlabel="Top Content"value={config.showTopContent}@@ -604,6 +611,11 @@ function SampleSideNav({? headingMenu: undefined}+ headerEndContent={+ config.showHeaderEndContent ? (+ <XDSBadge label="Pro" variant="info" />+ ) : undefined+ }/>);