Dialog Component
Description
The Dialog
component is a modal dialog that appears over the main content. It supports customizable backdrop behavior, ESC key closing, and scroll options.
Styled Subcomponents
Component | Description |
---|---|
Dialog_Title |
The title of the dialog. |
Dialog_Content |
The main content area of the dialog. |
Dialog_Actions |
A section for placing action buttons. |
Props
Prop | Type | Default | Description |
---|---|---|---|
open |
boolean |
false |
Controls whether the dialog is visible. |
onClose |
() => void |
undefined |
Callback function when the dialog is closed. |
maxWidth |
string |
"600px" |
The maximum width of the dialog. |
disableBackdropClick |
boolean |
false |
Prevents closing when clicking the backdrop. |
closeOnEsc |
boolean |
true |
Allows closing the dialog by pressing ESC. |
scroll |
"paper" , "body" |
"paper" |
Controls the scrolling behavior inside the dialog. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core