Home / File/ calendar-10.tsx — ui Source File

calendar-10.tsx — ui Source File

Architecture documentation for calendar-10.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  84597934_03d0_6c79_600d_aef41548588d["calendar-10.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  84597934_03d0_6c79_600d_aef41548588d --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  84597934_03d0_6c79_600d_aef41548588d --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  5000e233_363d_e409_8b5c_7e80d38646fe["calendar"]
  84597934_03d0_6c79_600d_aef41548588d --> 5000e233_363d_e409_8b5c_7e80d38646fe
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  84597934_03d0_6c79_600d_aef41548588d --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  style 84597934_03d0_6c79_600d_aef41548588d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"

import { Button } from "@/registry/new-york/ui/button"
import { Calendar } from "@/registry/new-york/ui/calendar"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/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>
  )
}

Subdomains

Functions

Dependencies

  • button
  • calendar
  • card
  • react

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__/new-york/blocks/calendar-10.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