CarouselNext() — ui Function Reference
Architecture documentation for the CarouselNext() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 11d1ef9f_800e_0d44_fdf2_c1eb4537af6e["CarouselNext()"] 34ea8762_b6f9_1326_4ee4_e5f05e66390a["carousel.tsx"] 11d1ef9f_800e_0d44_fdf2_c1eb4537af6e -->|defined in| 34ea8762_b6f9_1326_4ee4_e5f05e66390a 16e3bfe9_3945_1248_4edb_97d104cf9a3e["useCarousel()"] 11d1ef9f_800e_0d44_fdf2_c1eb4537af6e -->|calls| 16e3bfe9_3945_1248_4edb_97d104cf9a3e style 11d1ef9f_800e_0d44_fdf2_c1eb4537af6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/carousel.tsx lines 204–232
function CarouselNext({
className,
variant = "outline",
size = "icon",
...props
}: React.ComponentProps<typeof Button>) {
const { orientation, scrollNext, canScrollNext } = useCarousel()
return (
<Button
data-slot="carousel-next"
variant={variant}
size={size}
className={cn(
"absolute size-8 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}
>
<ArrowRight />
<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/registry/new-york-v4/ui/carousel.tsx.
Where is CarouselNext() defined?
CarouselNext() is defined in apps/v4/registry/new-york-v4/ui/carousel.tsx at line 204.
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