Interface ModalRef

Source
Expand description

Imperative handle exposed via ref on the Modal component.

interface ModalRef {
    close: () => void;
    open: () => void;
}

Properties§

§close: { ... }

Closes the modal with animation. No-op if already closed or animating.

§open: { ... }

Opens the modal with animation. No-op if already open or animating.