calendar-32.tsx — ui Source File
Architecture documentation for calendar-32.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0["calendar-32.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 9296b496_7dcb_ebca_2184_14782807983b["calendar"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> 9296b496_7dcb_ebca_2184_14782807983b e03b2544_1b68_470f_14f0_dfbd84c9df9b["drawer"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> e03b2544_1b68_470f_14f0_dfbd84c9df9b f826d306_7d63_5ba3_6a53_387904d37a9f["label"] 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 --> f826d306_7d63_5ba3_6a53_387904d37a9f style 2b6d03bb_5f39_be5d_7f16_da5c3800b4e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { CalendarPlusIcon } from "lucide-react"
import { Button } from "@/registry/default/ui/button"
import { Calendar } from "@/registry/default/ui/calendar"
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from "@/registry/default/ui/drawer"
import { Label } from "@/registry/default/ui/label"
export default function Calendar32() {
const [open, setOpen] = React.useState(false)
const [date, setDate] = React.useState<Date | undefined>(undefined)
return (
<div className="flex flex-col gap-3">
<Label htmlFor="date" className="px-1">
Date of birth
</Label>
<Drawer open={open} onOpenChange={setOpen}>
<DrawerTrigger asChild>
<Button
variant="outline"
id="date"
className="w-48 justify-between font-normal"
>
{date ? date.toLocaleDateString() : "Select date"}
<CalendarPlusIcon />
</Button>
</DrawerTrigger>
<DrawerContent className="w-auto overflow-hidden p-0">
<DrawerHeader className="sr-only">
<DrawerTitle>Select date</DrawerTitle>
<DrawerDescription>Set your date of birth</DrawerDescription>
</DrawerHeader>
<Calendar
mode="single"
selected={date}
captionLayout="dropdown"
onSelect={(date) => {
setDate(date)
setOpen(false)
}}
className="mx-auto [--cell-size:clamp(0px,calc(100vw/7.5),52px)]"
/>
</DrawerContent>
</Drawer>
<div className="text-muted-foreground px-1 text-sm">
This example works best on mobile.
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- drawer
- label
- lucide-react
- react
Source
Frequently Asked Questions
What does calendar-32.tsx do?
calendar-32.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-32.tsx?
calendar-32.tsx defines 1 function(s): Calendar32.
What does calendar-32.tsx depend on?
calendar-32.tsx imports 6 module(s): button, calendar, drawer, label, lucide-react, react.
Where is calendar-32.tsx in the architecture?
calendar-32.tsx is located at deprecated/www/__registry__/default/blocks/calendar-32.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