calendar-13.tsx — ui Source File
Architecture documentation for calendar-13.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR daac7304_2035_d998_945c_c8207e72daee["calendar-13.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] daac7304_2035_d998_945c_c8207e72daee --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 9296b496_7dcb_ebca_2184_14782807983b["calendar"] daac7304_2035_d998_945c_c8207e72daee --> 9296b496_7dcb_ebca_2184_14782807983b f826d306_7d63_5ba3_6a53_387904d37a9f["label"] daac7304_2035_d998_945c_c8207e72daee --> f826d306_7d63_5ba3_6a53_387904d37a9f e228e7c1_d41a_f872_31f6_4922388440b8["select"] daac7304_2035_d998_945c_c8207e72daee --> e228e7c1_d41a_f872_31f6_4922388440b8 style daac7304_2035_d998_945c_c8207e72daee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Calendar } from "@/registry/default/ui/calendar"
import { Label } from "@/registry/default/ui/label"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/registry/default/ui/select"
export default function Calendar13() {
const [dropdown, setDropdown] =
React.useState<React.ComponentProps<typeof Calendar>["captionLayout"]>(
"dropdown"
)
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
return (
<div className="flex flex-col gap-4">
<Calendar
mode="single"
defaultMonth={date}
selected={date}
onSelect={setDate}
captionLayout={dropdown}
className="rounded-lg border shadow-sm"
/>
<div className="flex flex-col gap-3">
<Label htmlFor="dropdown" className="px-1">
Dropdown
</Label>
<Select
value={dropdown}
onValueChange={(value) =>
setDropdown(
value as React.ComponentProps<typeof Calendar>["captionLayout"]
)
}
>
<SelectTrigger id="dropdown" className="bg-background w-full">
<SelectValue placeholder="Dropdown" />
</SelectTrigger>
<SelectContent align="center">
<SelectItem value="dropdown">Month and Year</SelectItem>
<SelectItem value="dropdown-months">Month Only</SelectItem>
<SelectItem value="dropdown-years">Year Only</SelectItem>
</SelectContent>
</Select>
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- calendar
- label
- react
- select
Source
Frequently Asked Questions
What does calendar-13.tsx do?
calendar-13.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-13.tsx?
calendar-13.tsx defines 1 function(s): Calendar13.
What does calendar-13.tsx depend on?
calendar-13.tsx imports 4 module(s): calendar, label, react, select.
Where is calendar-13.tsx in the architecture?
calendar-13.tsx is located at deprecated/www/registry/default/blocks/calendar-13.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