Skip to content

ModalCloseButton

function ModalCloseButton(__namedParameters: ModalCloseButtonProps): Element;

ModalCloseButton is used closes the modal. You don’t need to pass the onClick to it, it reads the onClose action from the modal context.

Parameter Type
__namedParameters ModalCloseButtonProps

Element

Docs https://caspeco.github.io/casper-ui-library/components/modal