Dialog Component

A flexible and accessible dialog component for displaying modal content.

Basic Dialog

A simple dialog with a title, description, and close button.

Confirmation Dialog

A dialog for confirming user actions.

Form Dialog

A dialog containing a form.

Alert Dialogs

Different types of alert dialogs for various scenarios.

Custom Dialog

A dialog with custom styling and positioning.

API Reference

Complete documentation of the Dialog component props.

Dialog Props

PropDescriptionTypeDefault
openWhether the dialog is openbooleanRequired
onCloseFunction called when the dialog is closed() => voidRequired
sizeSize of the dialog"sm" | "md" | "lg" | "xl" | "full""md"
positionVertical position of the dialog"center" | "top""center"
closeOnOverlayClickWhether clicking the overlay closes the dialogbooleantrue
showCloseButtonWhether to show the close buttonbooleantrue