Dialog
Open booking in the out-of-the-box modal with BookingCalendar.Dialog.
React component
Most products open booking from a button, in a modal. <BookingCalendar.Dialog>
is that modal, already built: a transparent, full-viewport canvas over a dimmed
overlay, so the widget's own open/close animation plays instead of being boxed
in. Drive it with your own state.
Inside <BookingCalendar.Dialog> the calendar is never full width, even if
you pass width="full". The dialog is the big canvas; the widget stays boxed.
Controlled or uncontrolled
Pass open + onOpenChange to control it yourself (above), or defaultOpen to
let it manage its own state. The overlay click, the Esc key, and the
built-in close button all request a close through onOpenChange.
Prop
Type