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

calendar-13.tsx — ui Source File

Architecture documentation for calendar-13.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
  c8b5c374_49cc_3b84_8a11_2bd9faa79a05["calendar-13.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  c8b5c374_49cc_3b84_8a11_2bd9faa79a05 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  5000e233_363d_e409_8b5c_7e80d38646fe["calendar"]
  c8b5c374_49cc_3b84_8a11_2bd9faa79a05 --> 5000e233_363d_e409_8b5c_7e80d38646fe
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  c8b5c374_49cc_3b84_8a11_2bd9faa79a05 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  c8b5c374_49cc_3b84_8a11_2bd9faa79a05 --> d493776b_8734_5d8d_382d_0f77f309a72b
  style c8b5c374_49cc_3b84_8a11_2bd9faa79a05 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"

import { Calendar } from "@/registry/new-york/ui/calendar"
import { Label } from "@/registry/new-york/ui/label"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york/ui/select"

export default function Calendar13() {
  const [dropdown, setDropdown] =
    React.useState<React.ComponentProps<typeof Calendar>["captionLayout"]>(
      "dropdown"
    )
  const [date, setDate] = React.useState<Date | undefined>(
    new Date(2025, 5, 12)
  )

  return (
    <div className="flex flex-col gap-4">
      <Calendar
        mode="single"
        defaultMonth={date}
        selected={date}
        onSelect={setDate}
        captionLayout={dropdown}
        className="rounded-lg border shadow-sm"
      />
      <div className="flex flex-col gap-3">
        <Label htmlFor="dropdown" className="px-1">
          Dropdown
        </Label>
        <Select
          value={dropdown}
          onValueChange={(value) =>
            setDropdown(
              value as React.ComponentProps<typeof Calendar>["captionLayout"]
            )
          }
        >
          <SelectTrigger id="dropdown" className="bg-background w-full">
            <SelectValue placeholder="Dropdown" />
          </SelectTrigger>
          <SelectContent align="center">
            <SelectItem value="dropdown">Month and Year</SelectItem>
            <SelectItem value="dropdown-months">Month Only</SelectItem>
            <SelectItem value="dropdown-years">Year Only</SelectItem>
          </SelectContent>
        </Select>
      </div>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • calendar
  • label
  • react
  • select

Frequently Asked Questions

What does calendar-13.tsx do?
calendar-13.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-13.tsx?
calendar-13.tsx defines 1 function(s): Calendar13.
What does calendar-13.tsx depend on?
calendar-13.tsx imports 4 module(s): calendar, label, react, select.
Where is calendar-13.tsx in the architecture?
calendar-13.tsx is located at deprecated/www/__registry__/new-york/blocks/calendar-13.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