diff options
Diffstat (limited to 'src/ui/c-modal/c-modal.demo.vue')
-rw-r--r-- | src/ui/c-modal/c-modal.demo.vue | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/c-modal/c-modal.demo.vue b/src/ui/c-modal/c-modal.demo.vue new file mode 100644 index 0000000..c4349f6 --- /dev/null +++ b/src/ui/c-modal/c-modal.demo.vue @@ -0,0 +1,15 @@ +<script lang="ts" setup> +const modal1 = ref(); +</script> + +<template> + <div> + <c-button @click="() => modal1?.open()"> + Open Modal + </c-button> + + <c-modal ref="modal1"> + Content + </c-modal> + </div> +</template> |