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"