interface ModalBoxCloseButtonProps {
    aria-label?: string;
    className?: string;
    onClose?: ((event: KeyboardEvent | MouseEvent<Element, MouseEvent>) => void);
    ouiaId?: string | number;
    ouiaSafe?: boolean;
}

Hierarchy (view full)

Properties

aria-label?: string

Accessible descriptor of the close button.

className?: string

Additional classes added to the close button.

onClose?: ((event: KeyboardEvent | MouseEvent<Element, MouseEvent>) => void)

A callback for when the close button is clicked.

ouiaId?: string | number

Value to set the data-ouia-component-id.

ouiaSafe?: boolean