CarouselPlugin() — ui Function Reference
Architecture documentation for the CarouselPlugin() function in carousel-plugin.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 983ab579_7ebf_ba70_d458_b9cd2af8843a["CarouselPlugin()"] 104227ce_9f61_57a4_4548_bdb312b87486["carousel-plugin.tsx"] 983ab579_7ebf_ba70_d458_b9cd2af8843a -->|defined in| 104227ce_9f61_57a4_4548_bdb312b87486 style 983ab579_7ebf_ba70_d458_b9cd2af8843a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/carousel-plugin.tsx lines 15–44
export default function CarouselPlugin() {
const plugin = React.useRef(
Autoplay({ delay: 2000, stopOnInteraction: true })
)
return (
<Carousel
plugins={[plugin.current]}
className="w-full max-w-xs"
onMouseEnter={plugin.current.stop}
onMouseLeave={plugin.current.reset}
>
<CarouselContent>
{Array.from({ length: 5 }).map((_, index) => (
<CarouselItem key={index}>
<div className="p-1">
<Card>
<CardContent className="flex aspect-square items-center justify-center p-6">
<span className="text-4xl font-semibold">{index + 1}</span>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CarouselPlugin() do?
CarouselPlugin() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/carousel-plugin.tsx.
Where is CarouselPlugin() defined?
CarouselPlugin() is defined in apps/v4/registry/new-york-v4/examples/carousel-plugin.tsx at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free