carousel-spacing.tsx — ui Source File
Architecture documentation for carousel-spacing.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 43f9d6de_fc2b_3a43_3100_c711402eae3e["carousel-spacing.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 43f9d6de_fc2b_3a43_3100_c711402eae3e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"] 43f9d6de_fc2b_3a43_3100_c711402eae3e --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31 a17cbcca_02e7_d30c_215a_6a83a834b2cb["carousel"] 43f9d6de_fc2b_3a43_3100_c711402eae3e --> a17cbcca_02e7_d30c_215a_6a83a834b2cb style 43f9d6de_fc2b_3a43_3100_c711402eae3e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { Card, CardContent } from "@/registry/default/ui/card"
import {
Carousel,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from "@/registry/default/ui/carousel"
export default function CarouselSpacing() {
return (
<Carousel className="w-full max-w-sm">
<CarouselContent className="-ml-1">
{Array.from({ length: 5 }).map((_, index) => (
<CarouselItem key={index} className="pl-1 md:basis-1/2 lg:basis-1/3">
<div className="p-1">
<Card>
<CardContent className="flex aspect-square items-center justify-center p-6">
<span className="text-2xl font-semibold">{index + 1}</span>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
)
}
Domain
Subdomains
Functions
Dependencies
- card
- carousel
- react
Source
Frequently Asked Questions
What does carousel-spacing.tsx do?
carousel-spacing.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-spacing.tsx?
carousel-spacing.tsx defines 1 function(s): CarouselSpacing.
What does carousel-spacing.tsx depend on?
carousel-spacing.tsx imports 3 module(s): card, carousel, react.
Where is carousel-spacing.tsx in the architecture?
carousel-spacing.tsx is located at deprecated/www/registry/default/examples/carousel-spacing.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free