Home / Function/ CarouselSpacing() — ui Function Reference

CarouselSpacing() — ui Function Reference

Architecture documentation for the CarouselSpacing() function in carousel-spacing.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  e6ac03db_6853_ee2c_7c21_23e05e148c24["CarouselSpacing()"]
  535297d0_b39a_4fb5_a771_0fc3493c25bb["carousel-spacing.tsx"]
  e6ac03db_6853_ee2c_7c21_23e05e148c24 -->|defined in| 535297d0_b39a_4fb5_a771_0fc3493c25bb
  style e6ac03db_6853_ee2c_7c21_23e05e148c24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/examples/carousel-spacing.tsx lines 12–32

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>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free