ModalHeader API
API reference docs for theModalHeadercomponent. For examples and details on the usage of this component, visit the component demo page.
Props
| Prop | Type | Description | Default |
|---|---|---|---|
closeButtonProps? | object | To render and customise Modal close button contains label and onClick | _ |
closeButtonProps.label | string | Aria label content for the close Icon button | _ |
closeButtonProps.onClick | function | Callback function to be invoked when the close button is clicked. | _ |
Note:
closeButtonPropsis deprecated as of version1.25.3. It is recommended to use the same prop directly on the<Modal />component instead.