Home / Function/ CarouselOrientation() — ui Function Reference

CarouselOrientation() — ui Function Reference

Architecture documentation for the CarouselOrientation() function in carousel-orientation.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0cf95299_c25a_3d33_8cba_d299fdd06e8f["CarouselOrientation()"]
  ebdfee00_8921_e62d_fb07_b3a1c7233812["carousel-orientation.tsx"]
  0cf95299_c25a_3d33_8cba_d299fdd06e8f -->|defined in| ebdfee00_8921_e62d_fb07_b3a1c7233812
  style 0cf95299_c25a_3d33_8cba_d299fdd06e8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/examples/carousel-orientation.tsx lines 12–38

export default function CarouselOrientation() {
  return (
    <Carousel
      opts={{
        align: "start",
      }}
      orientation="vertical"
      className="w-full max-w-xs"
    >
      <CarouselContent className="-mt-1 h-[200px]">
        {Array.from({ length: 5 }).map((_, index) => (
          <CarouselItem key={index} className="pt-1 md:basis-1/2">
            <div className="p-1">
              <Card>
                <CardContent className="flex items-center justify-center p-6">
                  <span className="text-3xl font-semibold">{index + 1}</span>
                </CardContent>
              </Card>
            </div>
          </CarouselItem>
        ))}
      </CarouselContent>
      <CarouselPrevious />
      <CarouselNext />
    </Carousel>
  )
}

Subdomains

Frequently Asked Questions

What does CarouselOrientation() do?
CarouselOrientation() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/carousel-orientation.tsx.
Where is CarouselOrientation() defined?
CarouselOrientation() is defined in deprecated/www/registry/new-york/examples/carousel-orientation.tsx at line 12.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free