This repository was archived by the owner on Dec 28, 2022. It is now read-only.
Description Description
To create a confirm component.
Tasks
Discussed in #10
Originally posted by yash-deepsource May 13, 2022
Description
ZConfirm component that allows warning the users about a whether they really want to do a particular action or not.
More information on them can be found on MDN .
Components
ZConfirm
Renders a confirm dialog.
Props
Prop
Default
Description
open: Boolean
'false'
Whether the confirm dialog is open or not.
unmount: Boolean
'true'
Whether to unmount the dialog from the DOM when ZConfirm is closed.
Styling
TODO
Events
Event name
Emits
Description
close
state: Boolean
Emitted when the confirm dialog is closed.
Preview
TODO
Code example
<script setup lang="ts">
import { ref } from ' vue'
const onClose = (newState ) => {
isOpen .value = newState
}
const isOpen = ref (false )
</script >
<template >
<button @click =" isOpen = !isOpen" > Toggle </button >
<z-confirm :open =" isOpen" @close =" onClose" >
Test
</z-confirm >
</template >
Reactions are currently unavailable
Description
To create a confirm component.
Tasks
ZConfirmcomponent logicZConfirmDesign specDiscussed in #10
Originally posted by yash-deepsource May 13, 2022
Description
ZConfirmcomponent that allows warning the users about a whether they really want to do a particular action or not.More information on them can be found on MDN.
Components
ZConfirmProps
open: Boolean'false'unmount: Boolean'true'ZConfirmis closed.Styling
TODO
Events
closestate: BooleanPreview
TODO
Code example