useModalSlot
and useModal
typings don't allow reactive values in attrs
, but it looks like they work?
#464
Labels
question
Further information is requested
Version
vue-final-modal: v4.5.5
vue: v3.5.13
nuxt: v3.15.4
Example
Note
Example simplified for brevity. Real life use case would be e.g. a
useConfirmModal
composable wheretitle
is typed asMaybeRef<string>
.(btw: forking https://codesandbox.io/s/nuxtcontent-demo-l164h is not possible, it doesn't exist?)
What is Expected?
It would be better if the typings reflect the actual values you can pass in
attrs
. Fixing this will make users more aware of the possibilities when usingvue-final-modal
, because it's super duper flexible and it's a shame if people don't make use of it, because they think they can't.The text was updated successfully, but these errors were encountered: