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 597952e7_ea6b_120e_166e_4449e878d3d2["calendar-10.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 597952e7_ea6b_120e_166e_4449e878d3d2 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] 597952e7_ea6b_120e_166e_4449e878d3d2 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 9296b496_7dcb_ebca_2184_14782807983b["calendar"] 597952e7_ea6b_120e_166e_4449e878d3d2 --> 9296b496_7dcb_ebca_2184_14782807983b 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"] 597952e7_ea6b_120e_166e_4449e878d3d2 --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31 style 597952e7_ea6b_120e_166e_4449e878d3d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/registry/default/ui/button"
import { Calendar } from "@/registry/default/ui/calendar"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/default/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__/default/blocks/calendar-10.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/__registry__/default/blocks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free