How is it possible that my custom components will be converted to components?

Hey, I would like to ask you, if it is possible, that my custom react code components will be converted to components like similiarly if I would import a .json figma file?

I would like to see something like that, so I have multiple layers etc, and not only my code tag. My customhero has only divs and etc

Here is the difference between column and my customhero.

Please let me know if it is possible somehow.

1 Like

Hi @radikris, yes this is possible with our withChildren() function! Check out this forum post which explains how you can set this up. We also have a live demo of this in our React Design System using the HeroWithChildren custom component. Try it out here!