The Controlled example from the Dialog docs.
npx shadcn@latest add @hextaui/dialog-controlled
dialog-controlled