v0.1 public beta early access on GitHub
Home / Components / dialog

DialogAndroid

Centered modal with spring entrance, backdrop fade and focus trap.

$ npx lumioui add dialog
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose } from "@/components/ui/dialog/dialog";
Parts: DialogContent · DialogHeader · DialogTitle · DialogDescription · DialogFooter · DialogClose
Props6
Dialog
children React.ReactNode
open? boolean Controlled open state. Omit for uncontrolled usage with defaultOpen.
defaultOpen? boolean Uncontrolled initial open state. Default false.
onOpenChange? (open: boolean) => void
DialogClose
children React.ReactElement<DialogCloseChildProps>
className? string
Dialogconfirm.tsx
dialog/variants/confirm.tsx open

Centered modal with spring entrance, backdrop fade and focus trap.