Home / File/ calendar.tsx — ui Source File

calendar.tsx — ui Source File

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

File tsx ComponentRegistry UIPrimitives 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  eb46c2e4_70b3_07b9_08fb_61e7f3d396d8["calendar.tsx"]
  f9e8c1ea_9de4_3e04_ca27_b15cada2e81e["date-fns"]
  eb46c2e4_70b3_07b9_08fb_61e7f3d396d8 --> f9e8c1ea_9de4_3e04_ca27_b15cada2e81e
  5000e233_363d_e409_8b5c_7e80d38646fe["calendar"]
  eb46c2e4_70b3_07b9_08fb_61e7f3d396d8 --> 5000e233_363d_e409_8b5c_7e80d38646fe
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  eb46c2e4_70b3_07b9_08fb_61e7f3d396d8 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  style eb46c2e4_70b3_07b9_08fb_61e7f3d396d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { addDays } from "date-fns"

import { Calendar } from "@/registry/new-york/ui/calendar"
import { Card, CardContent } from "@/registry/new-york/ui/card"

const start = new Date(2023, 5, 5)

export function CardsCalendar() {
  return (
    <Card className="max-w-[260px]">
      <CardContent className="p-1">
        <Calendar
          numberOfMonths={1}
          mode="range"
          defaultMonth={start}
          selected={{
            from: start,
            to: addDays(start, 8),
          }}
        />
      </CardContent>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • calendar
  • card
  • date-fns

Frequently Asked Questions

What does calendar.tsx do?
calendar.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in calendar.tsx?
calendar.tsx defines 1 function(s): CardsCalendar.
What does calendar.tsx depend on?
calendar.tsx imports 3 module(s): calendar, card, date-fns.
Where is calendar.tsx in the architecture?
calendar.tsx is located at deprecated/www/components/cards/calendar.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free