CarouselNext() — ui Function Reference
Architecture documentation for the CarouselNext() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 60799b33_3785_add3_7267_244c1698fe43["CarouselNext()"] f09ac3f5_020b_59bc_6922_56c2fb7083da["carousel.tsx"] 60799b33_3785_add3_7267_244c1698fe43 -->|defined in| f09ac3f5_020b_59bc_6922_56c2fb7083da 728b40a8_1519_1d4c_4336_b5b50e759783["useCarousel()"] 60799b33_3785_add3_7267_244c1698fe43 -->|calls| 728b40a8_1519_1d4c_4336_b5b50e759783 style 60799b33_3785_add3_7267_244c1698fe43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui-rtl/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"
? "-end-12 top-1/2 -translate-y-1/2"
: "start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2",
className
)}
disabled={!canScrollNext}
onClick={scrollNext}
{...props}
>
<ChevronRightIcon className="rtl:rotate-180" />
<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/base/ui-rtl/carousel.tsx.
Where is CarouselNext() defined?
CarouselNext() is defined in apps/v4/examples/base/ui-rtl/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