#How to have kind of 'named slot' in Solid like Vue?

3 messages · Page 1 of 1 (latest)

untold knot
#

I know there is 'props.children'

But I want to place each children to different location inside component.
What should I have to do?

flint citrus
#
<div>
  {props.firstSlot}
  <div>
    {props.secondSlot}
  </div>
</div>
<Foo firstSlot={<span />} secondSlot={<span />} />
untold knot