Modal New
New
A modal dialog displays content that requires user interaction, in a layer above the page.
Usage
title
Set modal title.
cancelButtonText | confirmButtonText
Set modal cancel button confirm button text.
draggable
Settings can be dragged.
shakeOff
shake off somthing.
headless
custom modal.
Props
| Name | Type | Default | Description |
|---|---|---|---|
| title | string | '' | set modal title. |
| cancelButtonText | string | Cancel | set modal cancel button text. |
| confirmButtonText | string | Confirm | set modal confirm button text. |
| draggable | boolean | false | Draggable the modal. |
| shakeOff | <'x-button' | 'confirm-button' | 'cancel-button' | 'mask' | 'header' | 'footer'>[] | [] | shake off somthing. |
Slots
| Name | Parameters | Description |
|---|---|---|
| default | () | Modal's content. |
| headless | () | Custom modal. |
Play UI