Hi @manish-sharma i have implemented your suggestion but still facing same issue.
this is my code
import {
builder,
Builder,
BuilderBlocks,
withChildren,
} from “@builder.io/react”;
import React from “react”;
// Import Swiper React components
import { Swiper, SwiperSlide } from “swiper/react”;
const CarouselComponent: React.FC = (props) => {
const { children, content, builderBlock } = props;
return (
<Swiper
slidesPerView={“auto”}
spaceBetween={24}
autoplay={{
delay: 2500,
disableOnInteraction: false,
}}
>
{React.Children.map(children, (child, index) => {
return (
<SwiperSlide key={${index}
}>
{child}
<BuilderBlocks
parentElementId={builderBlock.id}
style={{
width: “200px”,
height: “200px”,
}}
dataPath=“component.options.content”
blocks={content}
/>
);
})}
);
};
export const ReactCarousel = withChildren(CarouselComponent);
Builder.registerComponent(ReactCarousel, {
name: “Carousel”,
inputs: [
{
name: “autoplay”,
friendlyName: “Autoplay”,
type: “boolean”,
defaultValue: true,
helperText: “Enable autoplay”,
},
{
name: “slidesPerView”,
friendlyName: “Slides per view”,
type: “string”,
defaultValue: “auto”,
helperText: “Number of slides per view”,
enum: [“auto”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”],
},
{
name: “effect”,
friendlyName: “Effect”,
type: “string”,
defaultValue: “fade”,
enum: [“fade”, “creative”],
showIf: (options: any) => options.get(“slidesPerView”) === “1”,
},
{
name: “spaceBetween”,
friendlyName: “Space between”,
type: “string”,
defaultValue: “24”,
helperText: “Space between slides”,
enum: [“24”, “32”],
},
{
name: “content”,
type: “uiBlocks”,
defaultValue: ,
},
],
});
this is how i can apply