CarouselPrevious() — ui Function Reference
Architecture documentation for the CarouselPrevious() function in carousel.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6bb54c3d_8eea_1042_1b40_b7a2cf3466a0["CarouselPrevious()"] 5561f304_821d_8ffa_5ecc_71dcfb6cdd6c["carousel.tsx"] 6bb54c3d_8eea_1042_1b40_b7a2cf3466a0 -->|defined in| 5561f304_821d_8ffa_5ecc_71dcfb6cdd6c d1c48f69_7db6_6a59_cbe8_5cc53174caed["useCarousel()"] 6bb54c3d_8eea_1042_1b40_b7a2cf3466a0 -->|calls| d1c48f69_7db6_6a59_cbe8_5cc53174caed style 6bb54c3d_8eea_1042_1b40_b7a2cf3466a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/ui/carousel.tsx lines 200–223
>(({ className, variant = "outline", size = "icon", ...props }, ref) => {
const { orientation, scrollPrev, canScrollPrev } = useCarousel()
return (
<Button
ref={ref}
variant={variant}
size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
? "-left-12 top-1/2 -translate-y-1/2"
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
className
)}
disabled={!canScrollPrev}
onClick={scrollPrev}
{...props}
>
<ArrowLeft className="h-4 w-4" />
<span className="sr-only">Previous slide</span>
</Button>
)
})
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does CarouselPrevious() do?
CarouselPrevious() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/carousel.tsx.
Where is CarouselPrevious() defined?
CarouselPrevious() is defined in deprecated/www/registry/new-york/ui/carousel.tsx at line 200.
What does CarouselPrevious() call?
CarouselPrevious() 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