Can props be shared between components using the composition API, or is it still necessary to use mixins for that purpose?
For instance, if I have a "visible" prop that I want to reuse in 5 components, how can I define it once and reuse it efficiently with the composition API?
Instead of resorting to mixins like before, here's what I would usually do:
const mixin = {
props: { visible: { type: Boolean, required: false } }
}
To use this mixin in a component:
mixins: [theMixinAbove]
Is there a way to achieve this same functionality using the composition API?