CarouselNext() — ui Function Reference
Architecture documentation for the CarouselNext() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ab40efd1_f80e_cec3_d91e_cdea3bd3f81f["CarouselNext()"] 60c085f4_a46a_b0b3_ed68_c0d706f24e67["carousel.tsx"] ab40efd1_f80e_cec3_d91e_cdea3bd3f81f -->|defined in| 60c085f4_a46a_b0b3_ed68_c0d706f24e67 cd98b01d_e8fb_3b38_f534_d0589b55de3b["useCarousel()"] ab40efd1_f80e_cec3_d91e_cdea3bd3f81f -->|calls| cd98b01d_e8fb_3b38_f534_d0589b55de3b style ab40efd1_f80e_cec3_d91e_cdea3bd3f81f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/carousel.tsx lines 203–231
function CarouselNext({
className,
variant = "outline",
size = "icon-sm",
...props
}: React.ComponentProps<typeof Button>) {
const { orientation, scrollNext, canScrollNext } = useCarousel()
return (
<Button
data-slot="carousel-next"
variant={variant}
size={size}
className={cn(
"absolute touch-manipulation rounded-full",
orientation === "horizontal"
? "top-1/2 -right-12 -translate-y-1/2"
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
className
)}
disabled={!canScrollNext}
onClick={scrollNext}
{...props}
>
<ChevronRightIcon className="cn-rtl-flip" />
<span className="sr-only">Next slide</span>
</Button>
)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does CarouselNext() do?
CarouselNext() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/carousel.tsx.
Where is CarouselNext() defined?
CarouselNext() is defined in apps/v4/examples/radix/ui/carousel.tsx at line 203.
What does CarouselNext() call?
CarouselNext() calls 1 function(s): useCarousel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free