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

calendar-17.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  59beef21_8a99_5454_5159_84937d8ec663["calendar-17.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  59beef21_8a99_5454_5159_84937d8ec663 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  5000e233_363d_e409_8b5c_7e80d38646fe["calendar"]
  59beef21_8a99_5454_5159_84937d8ec663 --> 5000e233_363d_e409_8b5c_7e80d38646fe
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  59beef21_8a99_5454_5159_84937d8ec663 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  59beef21_8a99_5454_5159_84937d8ec663 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  59beef21_8a99_5454_5159_84937d8ec663 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  style 59beef21_8a99_5454_5159_84937d8ec663 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 { Card, CardContent, CardFooter } from "@/registry/new-york/ui/card"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"

export default function Calendar17() {
  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 [--cell-size:2.8rem]"
        />
      </CardContent>
      <CardFooter className="*:[div]:w-full flex gap-2 border-t px-4 pb-0 pt-4">
        <div className="flex-1">
          <Label htmlFor="time-from" className="sr-only">
            Start Time
          </Label>
          <Input
            id="time-from"
            type="time"
            step="1"
            defaultValue="10:30:00"
            className="appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
          />
        </div>
        <span>-</span>
        <div className="flex-1">
          <Label htmlFor="time-to" className="sr-only">
            End Time
          </Label>
          <Input
            id="time-to"
            type="time"
            step="1"
            defaultValue="12:30:00"
            className="appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
          />
        </div>
      </CardFooter>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • calendar
  • card
  • input
  • label
  • react

Frequently Asked Questions

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