Close button

The close button component provides a way for users to exit a modal, dialogue, or similar action. To further customize this component, you can also utilize all properties of the button component.

Examples

Basic close button

You can use onClick to execute a callback when a user clicks the close button.

Props

CloseButton

extends ButtonProps
*required
NameTypeDefaultDescription
dataTestIDstringData test ID used for testing.
ouiaIdNo type info"CloseButton"
We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.