calendar-31.tsx — ui Source File
Architecture documentation for calendar-31.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f7e26799_0029_1eb9_54a7_ec15ee53fb3d["calendar-31.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 31620d04_0563_6542_783f_2d872fad830e["little-date"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> 31620d04_0563_6542_783f_2d872fad830e d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 5000e233_363d_e409_8b5c_7e80d38646fe["calendar"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> 5000e233_363d_e409_8b5c_7e80d38646fe 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 style f7e26799_0029_1eb9_54a7_ec15ee53fb3d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { formatDateRange } from "little-date"
import { PlusIcon } from "lucide-react"
import { Button } from "@/registry/new-york/ui/button"
import { Calendar } from "@/registry/new-york/ui/calendar"
import { Card, CardContent, CardFooter } from "@/registry/new-york/ui/card"
const events = [
{
title: "Team Sync Meeting",
from: "2025-06-12T09:00:00",
to: "2025-06-12T10:00:00",
},
{
title: "Design Review",
from: "2025-06-12T11:30:00",
to: "2025-06-12T12:30:00",
},
{
title: "Client Presentation",
from: "2025-06-12T14:00:00",
to: "2025-06-12T15:00:00",
},
]
export default function Calendar31() {
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
return (
<Card className="w-fit py-4">
<CardContent className="px-4">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
className="bg-transparent p-0"
required
/>
</CardContent>
<CardFooter className="flex flex-col items-start gap-3 border-t px-4 pb-0 pt-4">
<div className="flex w-full items-center justify-between px-1">
<div className="text-sm font-medium">
{date?.toLocaleDateString("en-US", {
day: "numeric",
month: "long",
year: "numeric",
})}
</div>
<Button
variant="ghost"
size="icon"
className="h-6 w-6"
title="Add Event"
>
<PlusIcon />
<span className="sr-only">Add Event</span>
</Button>
</div>
<div className="flex w-full flex-col gap-2">
{events.map((event) => (
<div
key={event.title}
className="bg-muted after:bg-primary/70 relative rounded-md p-2 pl-6 text-sm after:absolute after:inset-y-2 after:left-2 after:w-1 after:rounded-full"
>
<div className="font-medium">{event.title}</div>
<div className="text-muted-foreground text-xs">
{formatDateRange(new Date(event.from), new Date(event.to))}
</div>
</div>
))}
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- card
- little-date
- lucide-react
- react
Source
Frequently Asked Questions
What does calendar-31.tsx do?
calendar-31.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-31.tsx?
calendar-31.tsx defines 1 function(s): Calendar31.
What does calendar-31.tsx depend on?
calendar-31.tsx imports 6 module(s): button, calendar, card, little-date, lucide-react, react.
Where is calendar-31.tsx in the architecture?
calendar-31.tsx is located at deprecated/www/registry/new-york/blocks/calendar-31.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