SolidJSS
SolidJSโ€ข8mo agoโ€ข
4 replies
Paul

Compound component find Type?

Imagine I have the following:

<Stepper>
  <Stepper.Step>
  </Stepper.Step>
  <Stepper.Completed>
  </Stepper.Completed>
</Stepper>


Is there a way in solid to find whether a child component is Step or Completed?

I appreciate there is no vdom. But surely solid goes through the JSX itself? Does it retain the .Step/Completed type? I don't know the name for this.

Using children() I can only retrieve the rendered outcome of the children.

Thanks!
Was this page helpful?