Skip to content
Overlays

Dialog

Modal dialog with header and footer.

Import

tsx
import { Dialog } from "@cooud-ui/ui";
bash
npx cooud-ui add dialog

Examples

API Reference

Generated from the component's exported types.

DialogContentProps

Extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>

PropTypeDefaultDescription
showCloseButton
booleantrueRender the built-in top-right close button. Set `false` when the content supplies its own close affordance (e.g. a full-bleed gallery header).