VDialog
TheVDialog component is used to inform users about a task and can contain critical information, require decisions, or involve multiple tasks. Dialogs appear in front of app content to provide critical information or ask for a decision.
Usage
Dialogs are controlled by av-model which determines whether the dialog is visible.
Activator Slot
Theactivator slot allows you to create a button or element that triggers the dialog.
The activator slot automatically binds the necessary props to open the dialog when clicked.
Fullscreen
Thefullscreen prop makes the dialog take up the entire screen.
Scrollable
Thescrollable prop allows the dialog content to scroll if it exceeds the dialog height.
Persistent
Thepersistent prop prevents the dialog from closing when clicking outside or pressing ESC.
When
persistent is enabled, clicking outside the dialog or pressing ESC will trigger a bounce animation instead of closing.Width and Height
Control the dialog dimensions withwidth, maxWidth, height, and maxHeight props.
Props
Controls whether the dialog is visible.
Makes the dialog fullscreen.
Allows the dialog content to scroll when it exceeds the available height.
Prevents the dialog from closing when clicking outside or pressing ESC.
Sets the width of the dialog.
Sets the maximum width of the dialog.
Sets the height of the dialog.
Sets the maximum height of the dialog.
Controls the scrim (overlay backdrop). Can be a boolean or color string.
Sets the component transition.
The z-index used for the dialog.
Specifies which DOM element the dialog should detach to. Use
false to disable detaching.Closes the dialog when the browser back button is pressed.
Keeps the dialog contained within its parent element.
Disables the bounce animation when clicking outside a persistent dialog.
Sets the transition origin.
Strategy used when the dialog is open and scrolling. Options:
block, close, none, reposition.Slots
The default Vue slot for dialog content.
Slot for the activator element that triggers the dialog.
Events
Emitted when the dialog visibility changes.
Emitted after the dialog transition has entered.
Emitted after the dialog transition has left.