@@ -104,6 +104,13 @@ <h5 class="card-title">Component Props Editor</h5>
104104 </ label >
105105 </ div >
106106 </ div >
107+
108+ < div class ="col-md-6 ">
109+ < label for ="propHeight " class ="form-label ">
110+ < strong > height</ strong > - Component height (e.g., "500px", "auto")
111+ </ label >
112+ < input type ="text " class ="form-control " id ="propHeight " value ="500px ">
113+ </ div >
107114 </ div >
108115
109116 < div class ="mt-3 ">
@@ -396,6 +403,7 @@ <h5 class="card-title">Usage Example</h5>
396403 // Props Editor: Apply Props button handler
397404 document . getElementById ( 'applyPropsBtn' ) . addEventListener ( 'click' , ( ) => {
398405 const isReadOnly = document . getElementById ( 'propReadOnly' ) . checked ;
406+ const heightValue = document . getElementById ( 'propHeight' ) . value . trim ( ) || '500px' ;
399407
400408 const props = {
401409 showCloseButton : document . getElementById ( 'propShowCloseButton' ) . checked ,
@@ -404,7 +412,8 @@ <h5 class="card-title">Usage Example</h5>
404412 hideToggleButton : document . getElementById ( 'propHideToggleButton' ) . checked ,
405413 hideDeliveryMethod : document . getElementById ( 'propHideDeliveryMethod' ) . checked ,
406414 readOnly : isReadOnly ,
407- disableClosedConversations : document . getElementById ( 'propDisableClosedConversations' ) . checked
415+ disableClosedConversations : document . getElementById ( 'propDisableClosedConversations' ) . checked ,
416+ height : heightValue
408417 } ;
409418
410419 // If readonly mode is enabled, inject the active conversation
@@ -447,6 +456,7 @@ <h5 class="card-title">Usage Example</h5>
447456 document . getElementById ( 'propHideDeliveryMethod' ) . checked = false ;
448457 document . getElementById ( 'propReadOnly' ) . checked = false ;
449458 document . getElementById ( 'propDisableClosedConversations' ) . checked = false ;
459+ document . getElementById ( 'propHeight' ) . value = '500px' ;
450460
451461 // Get current state before reinitializing
452462 const currentState = ChatComponent . useChatStore . getState ( ) . exportState ( ) ;
0 commit comments