0
Components
API reference

Dialog

Expressive modal dialog with spring scale motion, solid surface ring, scrollable panel, nested stacking, and mobile fullscreen mode.

Installation

Usage

Examples

From Menu

Nested Dialog

Close Confirmation

Scrollable Content

With Icon

API Reference

Dialog

Re-exports Dialog.Root from @base-ui/react/dialog.

PropTypeDefaultDescription
openboolean-Controlled open state
defaultOpenbooleanfalseInitial uncontrolled open state
onOpenChange(open: boolean) => void-Called when the open state changes
modalboolean | "trap-focus"trueBlocks outside interaction and traps focus

DialogPopup / DialogContent

Composes DialogPortal, DialogBackdrop, DialogViewport, and Dialog.Popup.

PropTypeDefaultDescription
showCloseButtonbooleanfalseRenders a top-right ghost close button
fullscreenOnMobilebooleanfalseExpands to full screen on viewports below sm
closePropsDialog.Close.Props-Props forwarded to the built-in close button
portalPropsDialog.Portal.Props-Props forwarded to the internal DialogPortal
classNamestring-Additional CSS classes

DialogPanel

Scrollable body container with overscroll containment and thin scrollbar styling.

PropTypeDefaultDescription
renderReact.ReactElement-Custom element to render instead of <div>
classNamestring-Additional CSS classes

DialogHeader / DialogIcon / DialogTitle / DialogDescription / DialogFooter / DialogTrigger / DialogClose

Composable header, centered icon slot (DialogIcon), accessible typography, and action footer primitives.

© taut ui — built with Base UI and Tailwind CSS v4.