calendar-19.tsx — ui Source File
Architecture documentation for calendar-19.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098["calendar-19.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 f9e8c1ea_9de4_3e04_ca27_b15cada2e81e["date-fns"] 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 --> f9e8c1ea_9de4_3e04_ca27_b15cada2e81e aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 5000e233_363d_e409_8b5c_7e80d38646fe["calendar"] 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 --> 5000e233_363d_e409_8b5c_7e80d38646fe 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 style 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { addDays } from "date-fns"
import { Button } from "@/registry/new-york/ui/button"
import { Calendar } from "@/registry/new-york/ui/calendar"
import { Card, CardContent, CardFooter } from "@/registry/new-york/ui/card"
export default function Calendar19() {
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
return (
<Card className="max-w-[300px] py-4">
<CardContent className="px-4">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
defaultMonth={date}
className="bg-transparent p-0 [--cell-size:2.375rem]"
/>
</CardContent>
<CardFooter className="flex flex-wrap gap-2 border-t px-4 pb-0 pt-4">
{[
{ label: "Today", value: 0 },
{ label: "Tomorrow", value: 1 },
{ label: "In 3 days", value: 3 },
{ label: "In a week", value: 7 },
{ label: "In 2 weeks", value: 14 },
].map((preset) => (
<Button
key={preset.value}
variant="outline"
size="sm"
className="flex-1"
onClick={() => {
const newDate = addDays(new Date(), preset.value)
setDate(newDate)
}}
>
{preset.label}
</Button>
))}
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- card
- date-fns
- react
Source
Frequently Asked Questions
What does calendar-19.tsx do?
calendar-19.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 calendar-19.tsx?
calendar-19.tsx defines 1 function(s): Calendar19.
What does calendar-19.tsx depend on?
calendar-19.tsx imports 5 module(s): button, calendar, card, date-fns, react.
Where is calendar-19.tsx in the architecture?
calendar-19.tsx is located at deprecated/www/__registry__/new-york/blocks/calendar-19.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/__registry__/new-york/blocks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free