@@ -41,6 +41,8 @@ type Args = {
4141 menu : 'undefined' | 'default' | 'custom' ;
4242 desktopLargeMenu : boolean ;
4343 customLogo : boolean ;
44+ topSlot : boolean ;
45+ topSlotBackgroundColor : string ;
4446 wide : boolean ;
4547 paddingX : PadSize | 'undefined' ;
4648} ;
@@ -54,6 +56,8 @@ export const Default: StoryComponent<Args> = ({
5456 menu,
5557 desktopLargeMenu,
5658 customLogo,
59+ topSlot,
60+ topSlotBackgroundColor,
5761 wide,
5862 paddingX,
5963} ) => {
@@ -68,6 +72,8 @@ export const Default: StoryComponent<Args> = ({
6872 burgerMenuExtra = { burgerMenuExtra ? < Placeholder /> : undefined }
6973 desktopLargeMenu = { desktopLargeMenu }
7074 logo = { customLogo ? < Placeholder width = { 40 } height = { 40 } /> : undefined }
75+ topSlot = { topSlot ? < Placeholder height = { 24 } /> : undefined }
76+ topSlotBackgroundColor = { topSlotBackgroundColor || undefined }
7177 sections = {
7278 sections
7379 ? sectionTitles . map ( ( title , idx ) => ( {
@@ -139,6 +145,8 @@ Default.args = {
139145 menu : 'undefined' ,
140146 desktopLargeMenu : false ,
141147 customLogo : false ,
148+ topSlot : false ,
149+ topSlotBackgroundColor : '' ,
142150 wide : false ,
143151 paddingX : 'undefined' ,
144152} ;
@@ -154,6 +162,10 @@ Default.argTypes = {
154162 if : { arg : 'sections' } ,
155163 } ,
156164 desktopLargeMenu : { if : { arg : 'sections' } } ,
165+ topSlotBackgroundColor : {
166+ control : { type : 'color' } ,
167+ if : { arg : 'topSlot' } ,
168+ } ,
157169 paddingX : {
158170 options : [ 'undefined' , 8 , 12 , 16 , 20 , 24 , 32 , 40 , 48 , 56 , 64 , 72 , 80 ] ,
159171 control : { type : 'select' } ,
0 commit comments