Open flexchar opened 10 months ago
@flexchar
Thank you to bring this up! I've been thinking about supporting composable like useDialog()
based on <dialog />
for a while.
Basically, useModal()
and VueFinalModal.vue
kind of implementing the similar behaviors to <dialog />
element.
Recently I will start implementing v5 and put useDialog()
and VueFinalDialog.vue
into the new feature list.
To be completely honest, after I played with both I figured that <dialog />
is essentially an alternative rather than a base. The only problem is that one cannot control where the models will be based - that's what <ModelsContainer />
does now.
However other than that, I'd say that it may completely replace the need for libraries in many cases and will allow reclaim maintainers their time. :)
It seems that the
dialog
element is widely supported and it brings benefits being a native element. Any thoughts if this could be supported within the project?https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog