Embedding a component without slots as a slot within a larger component #187
staticshock
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was just trying to combine the Switch styles in the RAC starter kit and ran into a problem: if I turn
track
into a slot, it can't as easily extendfocusRing
anymore. Here's what I have so far:This works, but is kind of verbose. Is this as good as it gets?
I looked through the docs and didn't find any way to "embed" an existing non-slotted component as a single slot within a more complex component. On a whim, I tried this, but it did not work:
Beta Was this translation helpful? Give feedback.
All reactions