Galaktikos
Galaktikos
SSolidJS
Created by Galaktikos on 10/23/2024 in #support
Setting custom 'children' type
I'm attempting to create a carousel component for my Astro site using Ark UI and need to pass some elements into it for the items. I attempted to use the Component type instead of ParentComponent with a children parameter set to accept an array of elements. There seems to be no issues in the editor and the type is even correctly checked when using the component. When I run the site, however, the children property returns what looks like the standard JSX element. Is this intended behavior? If so is there any alternative without aliasing the entire carousel component to work with Astro?
2 replies