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

carousel-spacing.tsx — ui Source File

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

File tsx DocumentationAtlas SearchAPI 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  20407e4d_5c7c_afb5_3a07_3742d1782b5f["carousel-spacing.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  20407e4d_5c7c_afb5_3a07_3742d1782b5f --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e["card"]
  20407e4d_5c7c_afb5_3a07_3742d1782b5f --> a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e
  1a4dd821_3235_27e7_2fd5_c50716b45e7b["carousel"]
  20407e4d_5c7c_afb5_3a07_3742d1782b5f --> 1a4dd821_3235_27e7_2fd5_c50716b45e7b
  style 20407e4d_5c7c_afb5_3a07_3742d1782b5f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"
import { Card, CardContent } from "@/examples/radix/ui/card"
import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/examples/radix/ui/carousel"

export default function CarouselSpacing() {
  return (
    <Carousel className="w-full max-w-[12rem] sm:max-w-xs md:max-w-sm">
      <CarouselContent className="-ml-1">
        {Array.from({ length: 5 }).map((_, index) => (
          <CarouselItem key={index} className="basis-1/2 pl-1 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

Functions

Dependencies

  • card
  • carousel
  • react

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 DocumentationAtlas domain, SearchAPI 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 apps/v4/examples/radix/carousel-spacing.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free