From 17e3166f13caf533fde2fadecd2625bd599ee160 Mon Sep 17 00:00:00 2001 From: Michael Dausmann Date: Sun, 14 May 2023 00:31:47 +1000 Subject: [PATCH] modal dialog component --- README.md | 2 +- components/Modal.vue | 67 ++++++++++++++++++++++++++++++++++++++++ components/modal.type.ts | 4 +++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 components/Modal.vue create mode 100644 components/modal.type.ts diff --git a/README.md b/README.md index 719748b..f243719 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Demo site [here](https://nuxt3-saas-boilerplate.netlify.app/) - [x] Default UI isn't too crap - [x] Integrated Design system including theming (Tailwind + daisyUI) - [x] Toasts for things like reset email sent -- [ ] Modals, just because people like modals +- [x] Modals, just because people like modals ### Demo Software (Notes) - [x] Simple Text based Notes functionality diff --git a/components/Modal.vue b/components/Modal.vue new file mode 100644 index 0000000..f60ade4 --- /dev/null +++ b/components/Modal.vue @@ -0,0 +1,67 @@ + + + \ No newline at end of file diff --git a/components/modal.type.ts b/components/modal.type.ts new file mode 100644 index 0000000..2b3d7b2 --- /dev/null +++ b/components/modal.type.ts @@ -0,0 +1,4 @@ +import { Modal } from '#components'; + +// seems pretty stoopid that I need to do this in a seperate file but it seems to work +export type ModalType = typeof Modal extends new () => infer T ? T : never; \ No newline at end of file