Skip to content

Dialog

Terminal window
npx skeci-ui add dialog
import {
Dialog,
DialogTrigger,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription,
DialogFooter,
} from '@/components/ui/dialog';
<Dialog>
<DialogTrigger>Open Dialog</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Are you sure?</DialogTitle>
<DialogDescription>
This action cannot be undone.
</DialogDescription>
</DialogHeader>
<DialogFooter>
<Button>Confirm</Button>
</DialogFooter>
</DialogContent>
</Dialog>
PropTypeDefaultDescription
openbooleanControlled open state.
onOpenChange(open: boolean) => voidEvent handler for open state changes.
defaultOpenbooleanfalseDefault open state.