Imperative handle exposed via ref on the Modal component.
interface ModalRef { close: () => void; open: () => void;}
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.
Imperative handle exposed via ref on the Modal component.