#Extracting the children of an astro-slot wrapper

2 messages · Page 1 of 1 (latest)

young panther
#

Hey, I am trying to use solid-slider with Astro. I put the slider control into its own component, and I am trying to set the content of the slider using {props.children}.

**Slider component**
<Slider>
  {props.children}
</Slider>

**Usage**

<MySlider client:load>
  **put children here**
</MySlider>

The problem is that by using a slot, it generates an astro-slot wrapper around all the children, so the slider control only "sees" one slide. Is there a way to render the slot without the wrapper tag?

young panther
#

Extracting the children of an astro-slot wrapper