ModalHeader API

API reference docs for theModalHeadercomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
closeButtonProps?objectTo render and customise Modal close button contains label and onClick_
closeButtonProps.labelstringAria label content for the close Icon button_
closeButtonProps.onClickfunctionCallback function to be invoked when the close button is clicked._

Note: closeButtonProps is deprecated as of version 1.25.3. It is recommended to use the same prop directly on the <Modal /> component instead.