Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Passing components from React into Vue component named slot #92

Open
mwsiddeeq15 opened this issue Aug 30, 2019 · 1 comment · May be fixed by #152
Open

Passing components from React into Vue component named slot #92

mwsiddeeq15 opened this issue Aug 30, 2019 · 1 comment · May be fixed by #152

Comments

@mwsiddeeq15
Copy link

I'm trying to pass a React component into a Vue component's named slot, but I only see a way to pass into a default slot. Is there a way to specify which slot to pass it into?

@just-boris
Copy link

Currently wrappers map only default slot into children prop in React. Named slots are currently ignored.

The starting point for implementation is around these lines:

},
attrs: this.$attrs,
on: this.$listeners,

this.$slots (and maybe this.$scopedSlots) should be passed down the same way as the $attrs currently do. Then react-wrapper should pick them up and convert to React as it currently does for children. Seems doable.

@fengkx fengkx linked a pull request Feb 22, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants