Dialog

Present focused modal content and require a user decision.

Dialog

Dialog is a general-purpose modal container — header, body, and footer are all yours via slots.

For simple confirm / alert flows with built-in Accept and Cancel buttons, use Prompt instead. Prompt is not redundant: it targets “Are you sure?”-style interactions; Dialog targets arbitrary UI (forms, wizards, nested modals, fullscreen views).

Default

It generates a Dialog with the s-dialog component, this component is very customizable since it provides a slot to put and make any type of interface to the user’s need

Code copied

Type

You can easily create the most common types of dialogs such as Alert, Confirm or Prompt using the different slots for the structure of the header,default, footer dialog

Code copied

Loading

Add a loading animation to the dialog with the loading property

Code copied

Not close

You can remove the close button with the not-close property

Code copied

Scroll

There are cases where you need a scroll because there is a lot of information within the dialog for this you can use the scroll property

Code copied

Lock scroll Body

If you need to remove the page scroll when opening the dialog you can do it with the lock-scroll property

Code copied

Not Padding

If you need to remove the padding from the dialog to make a more personalized interface you can do it with the not-padding property

Code copied

Nested Dialogs

You can nest as many s-dialog as you need without problem

Code copied

Full Screen

If you need the dialog to be the total window size you can do it with the full-screen property

Code copied

Overlay blur

You can add a blur style to all the elements behind the dialog with the overlay-blur property, this functionality depends on the css property backdrop-filter

Code copied

Shape

Square

Change the dialog style by removing the border radius and making it rectangular

Code copied

Prevent Close

With the prevent-close property you do not close the dialog by clicking outside or pressing the esc key

Code copied

Advanced

Use title, content and action-button props when slots would be unnecessary; custom slots keep priority.

API

Code copied

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
model-value / before-closeBoolean / Functiontrue | false / close guardBind visibility and optionally guard closing.false / -
color / top / height / min-width / min-height / auto-widthColor / String | Number / BooleanCSS size and color valuesConfigure dialog appearance, placement and dimensions.-
cancel-closable / confirm-closable / cancel-button-text / confirm-button-textBoolean / Stringtrue | false / button labelsConfigure footer actions and whether each action closes the dialog.-
v-modelBooleantruefalseDetermine if the dialogue is visible or hidden.
not-centerBooleantruefalseBy default the header centers the elements, with this property the centering is eliminated.
widthStringpxDetermine the width of the dialog.
loadingBooleantruefalseAdd a loading animation to the dialog.
not-closeBooleantruefalseRemove the close button from the dialog.
scrollBooleantruefalseMakes the content a maximum high and gives the possibility to overflow the content add scroll.
lock-scrollBooleantruefalseWhen the dialog is opened, the page scroll is deleted.
auto-widthBooleantruefalseIt makes the dialog have an automatic width to its content.
not-paddingBooleantruefalseEliminates the padding of the base elements of the dialog.
full-screenBooleantruefalseMakes the dialog the size of the window.
overlay-blurBooleantruefalseMakes all elements blur when the dialog opens.
shapeStringsquareRemove the border radius from the dialog.
prevent-closeBooleantruefalseIt makes the dialog cannot be closed by clicking outside or by pressing the esc key.
title / content / show-headerString, BooleanStringtrue | falseBuilt-in header and content when slots are not needed.null, null, true
mask / mask-closable / show-closeBooleantrue | falseControl overlay and dismissal behavior.true
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
defaultslotslot default of Dialog
headerslotslot header of Dialog
No matching data

EVENTS

PropertyTypeValuesDescriptiondefaultExampleMore
closeFunctiontriggers when the Dialog closes
No matching data
Last Updated: 2026-08-17, 08:33:54