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 Internationalization Dictionary 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  dfeb5abc_661e_37fa_de3b_df7ba713c9ff["calendar.tsx"]
  f9e8c1ea_9de4_3e04_ca27_b15cada2e81e["date-fns"]
  dfeb5abc_661e_37fa_de3b_df7ba713c9ff --> f9e8c1ea_9de4_3e04_ca27_b15cada2e81e
  7bfe56e6_25f1_1b2f_588d_f14238c3c071["calendar"]
  dfeb5abc_661e_37fa_de3b_df7ba713c9ff --> 7bfe56e6_25f1_1b2f_588d_f14238c3c071
  c6d6139d_ea69_3d79_5004_68419bae2ac0["card"]
  dfeb5abc_661e_37fa_de3b_df7ba713c9ff --> c6d6139d_ea69_3d79_5004_68419bae2ac0
  style dfeb5abc_661e_37fa_de3b_df7ba713c9ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { addDays } from "date-fns"

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

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

export function CardsCalendar() {
  return (
    <Card className="hidden max-w-[260px] p-0 sm:flex">
      <CardContent className="p-0">
        <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 Internationalization domain, Dictionary 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 apps/v4/components/cards/calendar.tsx (domain: Internationalization, subdomain: Dictionary, directory: apps/v4/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free