Using a Component as an argument to another Component #17193
Unanswered
samuelharmer
asked this question in
Q&A
Replies: 1 comment
-
|
In this case, I don't think you can use components because the library still uses the legacy syntax. The |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm just picking up Svelte with Carbon Components. I'm trying to do something like the following with Theme.
But instead of "Light" and "Dark" for labels I'd like to use Sun and Moon from carbon-icons-svelte for
labelAandlabelB. I'm wondering if it's just not possible, because of how the Theme component has been written; the labels being strings, and the icons being<svg>...</svg>nodes?Have I understood that correctly, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions