Home / File/ carousel-orientation.tsx — ui Source File

carousel-orientation.tsx — ui Source File

Architecture documentation for carousel-orientation.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  58b41cdb_05ae_89cb_0043_782ce1d1b551["carousel-orientation.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  58b41cdb_05ae_89cb_0043_782ce1d1b551 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  c6d6139d_ea69_3d79_5004_68419bae2ac0["card"]
  58b41cdb_05ae_89cb_0043_782ce1d1b551 --> c6d6139d_ea69_3d79_5004_68419bae2ac0
  0a2a99e8_d3cf_faf2_ffc2_338ee3d9c8f3["carousel"]
  58b41cdb_05ae_89cb_0043_782ce1d1b551 --> 0a2a99e8_d3cf_faf2_ffc2_338ee3d9c8f3
  style 58b41cdb_05ae_89cb_0043_782ce1d1b551 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"

import { Card, CardContent } from "@/registry/new-york-v4/ui/card"
import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/registry/new-york-v4/ui/carousel"

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

Dependencies

  • card
  • carousel
  • react

Frequently Asked Questions

What does carousel-orientation.tsx do?
carousel-orientation.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in carousel-orientation.tsx?
carousel-orientation.tsx defines 1 function(s): CarouselOrientation.
What does carousel-orientation.tsx depend on?
carousel-orientation.tsx imports 3 module(s): card, carousel, react.
Where is carousel-orientation.tsx in the architecture?
carousel-orientation.tsx is located at apps/v4/registry/new-york-v4/examples/carousel-orientation.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free