calendar-10.tsx — ui Source File
Architecture documentation for calendar-10.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 14840905_2d57_099c_917c_3f3bb9a4b2e7["calendar-10.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 14840905_2d57_099c_917c_3f3bb9a4b2e7 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 14840905_2d57_099c_917c_3f3bb9a4b2e7 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 5000e233_363d_e409_8b5c_7e80d38646fe["calendar"] 14840905_2d57_099c_917c_3f3bb9a4b2e7 --> 5000e233_363d_e409_8b5c_7e80d38646fe 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] 14840905_2d57_099c_917c_3f3bb9a4b2e7 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 style 14840905_2d57_099c_917c_3f3bb9a4b2e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/registry/new-york/ui/button"
import { Calendar } from "@/registry/new-york/ui/calendar"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/new-york/ui/card"
export default function Calendar10() {
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
const [month, setMonth] = React.useState<Date | undefined>(new Date())
return (
<Card>
<CardHeader className="relative">
<CardTitle>Appointment</CardTitle>
<CardDescription>Find a date</CardDescription>
<Button
size="sm"
variant="outline"
className="absolute right-4 top-4"
onClick={() => {
setMonth(new Date())
setDate(new Date())
}}
>
Today
</Button>
</CardHeader>
<CardContent>
<Calendar
mode="single"
month={month}
onMonthChange={setMonth}
selected={date}
onSelect={setDate}
className="bg-transparent p-0"
/>
</CardContent>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- card
- react
Source
Frequently Asked Questions
What does calendar-10.tsx do?
calendar-10.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-10.tsx?
calendar-10.tsx defines 1 function(s): Calendar10.
What does calendar-10.tsx depend on?
calendar-10.tsx imports 4 module(s): button, calendar, card, react.
Where is calendar-10.tsx in the architecture?
calendar-10.tsx is located at deprecated/www/registry/new-york/blocks/calendar-10.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