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
  47027812_478d_2fc1_3e3e_bb8c764c1904["calendar-10.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  47027812_478d_2fc1_3e3e_bb8c764c1904 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"]
  47027812_478d_2fc1_3e3e_bb8c764c1904 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4
  9296b496_7dcb_ebca_2184_14782807983b["calendar"]
  47027812_478d_2fc1_3e3e_bb8c764c1904 --> 9296b496_7dcb_ebca_2184_14782807983b
  40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"]
  47027812_478d_2fc1_3e3e_bb8c764c1904 --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31
  style 47027812_478d_2fc1_3e3e_bb8c764c1904 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"

import { Button } from "@/registry/default/ui/button"
import { Calendar } from "@/registry/default/ui/calendar"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/default/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/default/blocks/calendar-10.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