Home / Function/ CarouselNext() — ui Function Reference

CarouselNext() — ui Function Reference

Architecture documentation for the CarouselNext() function in carousel.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  2bd5ea1b_599a_16fe_f44c_10aeb3a53102["CarouselNext()"]
  5561f304_821d_8ffa_5ecc_71dcfb6cdd6c["carousel.tsx"]
  2bd5ea1b_599a_16fe_f44c_10aeb3a53102 -->|defined in| 5561f304_821d_8ffa_5ecc_71dcfb6cdd6c
  d1c48f69_7db6_6a59_cbe8_5cc53174caed["useCarousel()"]
  2bd5ea1b_599a_16fe_f44c_10aeb3a53102 -->|calls| d1c48f69_7db6_6a59_cbe8_5cc53174caed
  style 2bd5ea1b_599a_16fe_f44c_10aeb3a53102 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/carousel.tsx lines 229–252

>(({ className, variant = "outline", size = "icon", ...props }, ref) => {
  const { orientation, scrollNext, canScrollNext } = useCarousel()

  return (
    <Button
      ref={ref}
      variant={variant}
      size={size}
      className={cn(
        "absolute h-8 w-8 rounded-full",
        orientation === "horizontal"
          ? "-right-12 top-1/2 -translate-y-1/2"
          : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
        className
      )}
      disabled={!canScrollNext}
      onClick={scrollNext}
      {...props}
    >
      <ArrowRight className="h-4 w-4" />
      <span className="sr-only">Next slide</span>
    </Button>
  )
})

Subdomains

Frequently Asked Questions

What does CarouselNext() do?
CarouselNext() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/carousel.tsx.
Where is CarouselNext() defined?
CarouselNext() is defined in deprecated/www/registry/new-york/ui/carousel.tsx at line 229.
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