calendar-24.tsx — ui Source File
Architecture documentation for calendar-24.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a799593f_4efe_d0fe_433a_6ff691b968fc["calendar-24.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] a799593f_4efe_d0fe_433a_6ff691b968fc --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] a799593f_4efe_d0fe_433a_6ff691b968fc --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] a799593f_4efe_d0fe_433a_6ff691b968fc --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 5000e233_363d_e409_8b5c_7e80d38646fe["calendar"] a799593f_4efe_d0fe_433a_6ff691b968fc --> 5000e233_363d_e409_8b5c_7e80d38646fe 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"] a799593f_4efe_d0fe_433a_6ff691b968fc --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] a799593f_4efe_d0fe_433a_6ff691b968fc --> fa665cdb_5f79_b81a_95ab_12ba182fc175 e33b0d79_0534_28ec_a112_ac16ee736e09["popover"] a799593f_4efe_d0fe_433a_6ff691b968fc --> e33b0d79_0534_28ec_a112_ac16ee736e09 style a799593f_4efe_d0fe_433a_6ff691b968fc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { ChevronDownIcon } from "lucide-react"
import { Button } from "@/registry/new-york/ui/button"
import { Calendar } from "@/registry/new-york/ui/calendar"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/registry/new-york/ui/popover"
export default function Calendar24() {
const [open, setOpen] = React.useState(false)
const [date, setDate] = React.useState<Date | undefined>(undefined)
return (
<div className="flex gap-4">
<div className="flex flex-col gap-3">
<Label htmlFor="date" className="px-1">
Date
</Label>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
variant="outline"
id="date"
className="w-32 justify-between font-normal"
>
{date ? date.toLocaleDateString() : "Select date"}
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto overflow-hidden p-0" align="start">
<Calendar
mode="single"
selected={date}
captionLayout="dropdown"
onSelect={(date) => {
setDate(date)
setOpen(false)
}}
/>
</PopoverContent>
</Popover>
</div>
<div className="flex flex-col gap-3">
<Label htmlFor="time" className="px-1">
Time
</Label>
<Input
type="time"
id="time"
step="1"
defaultValue="10:30:00"
className="bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
/>
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- input
- label
- lucide-react
- popover
- react
Source
Frequently Asked Questions
What does calendar-24.tsx do?
calendar-24.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-24.tsx?
calendar-24.tsx defines 1 function(s): Calendar24.
What does calendar-24.tsx depend on?
calendar-24.tsx imports 7 module(s): button, calendar, input, label, lucide-react, popover, react.
Where is calendar-24.tsx in the architecture?
calendar-24.tsx is located at deprecated/www/__registry__/new-york/blocks/calendar-24.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