Dialog

A Dialog component is a UI element that displays a pop-up window over the main content to capture user attention or request input. It is often used for tasks like confirmations, alerts, forms, or other interactions that require user feedback before proceeding. Dialogs can include buttons like "OK" or "Cancel" to confirm or dismiss actions, and typically block interaction with the underlying content until closed.
# Demo

Demo Coming Soon

Dialog examples will be available soon.

# Usage
# Attributes
NameTypeDefaultDetails
isOpenbooleanRequiredControls whether the dialog is open.
titlestringRequiredTitle for the dialog.
sizeDialogSizeOptionalSize of the dialog.
classNamestring' 'You can customise by passing tailwind classes.
titleClassNamestring' 'You can customise by passing tailwind classes.
headerClassNamestring' 'You can customise by passing tailwind classes.
contentClassNamestring' 'You can customise by passing tailwind classes.
childrenReact.ReactNodeRequiredContent for the dialog.
onClose() => voidRequiredCallback when dialog is closed.
renderHeader(title: string) => React.ReactNodeOptionalCustom render function for header.
renderFooter() => React.ReactNodeOptionalCustom render function for footer.