Closed mehulkar closed 1 year ago
https://www.oidaisdes.org/native-dialog-element.en/ not quite ready for the big time.
I remember trying to do this with https://github.com/steven-tey/dub but for some reason <dialog>
+ framer-motion
was throwing some weird bugs...will take another stab!
Update: yup, changing motion.div
to motion.dialog
breaks the modal 😅
Might fix it if I have time but probably not a top priority for now
<dialog>
element is widely available now! I would recommend using it for modals :) https://github.com/steven-tey/precedent/blob/main/components/shared/modal.tsx