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

carousel-demo.tsx — ui Source File

Architecture documentation for carousel-demo.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
  8cd24b9a_57ec_de3e_951d_2b5d42f2cb9e["carousel-demo.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  8cd24b9a_57ec_de3e_951d_2b5d42f2cb9e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  8cd24b9a_57ec_de3e_951d_2b5d42f2cb9e --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  4efb8604_09a5_eea0_d8ad_27101c326b58["carousel"]
  8cd24b9a_57ec_de3e_951d_2b5d42f2cb9e --> 4efb8604_09a5_eea0_d8ad_27101c326b58
  style 8cd24b9a_57ec_de3e_951d_2b5d42f2cb9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"

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

export default function CarouselDemo() {
  return (
    <Carousel className="w-full max-w-xs">
      <CarouselContent>
        {Array.from({ length: 5 }).map((_, index) => (
          <CarouselItem key={index}>
            <div className="p-1">
              <Card>
                <CardContent className="flex aspect-square items-center justify-center p-6">
                  <span className="text-4xl font-semibold">{index + 1}</span>
                </CardContent>
              </Card>
            </div>
          </CarouselItem>
        ))}
      </CarouselContent>
      <CarouselPrevious />
      <CarouselNext />
    </Carousel>
  )
}

Subdomains

Functions

Dependencies

  • card
  • carousel
  • react

Frequently Asked Questions

What does carousel-demo.tsx do?
carousel-demo.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-demo.tsx?
carousel-demo.tsx defines 1 function(s): CarouselDemo.
What does carousel-demo.tsx depend on?
carousel-demo.tsx imports 3 module(s): card, carousel, react.
Where is carousel-demo.tsx in the architecture?
carousel-demo.tsx is located at deprecated/www/registry/new-york/examples/carousel-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).

Analyze Your Own Codebase

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

Try Supermodel Free