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

calendar-16.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5e9b153e_1b06_9c88_3681_789eb391edeb["calendar-16.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  9296b496_7dcb_ebca_2184_14782807983b["calendar"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> 9296b496_7dcb_ebca_2184_14782807983b
  40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31
  163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60
  f826d306_7d63_5ba3_6a53_387904d37a9f["label"]
  5e9b153e_1b06_9c88_3681_789eb391edeb --> f826d306_7d63_5ba3_6a53_387904d37a9f
  style 5e9b153e_1b06_9c88_3681_789eb391edeb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Clock2Icon } from "lucide-react"

import { Calendar } from "@/registry/default/ui/calendar"
import { Card, CardContent, CardFooter } from "@/registry/default/ui/card"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"

export default function Calendar16() {
  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"
        />
      </CardContent>
      <CardFooter className="flex flex-col gap-6 border-t px-4 pb-0 pt-4">
        <div className="flex w-full flex-col gap-3">
          <Label htmlFor="time-from">Start Time</Label>
          <div className="relative flex w-full items-center gap-2">
            <Clock2Icon className="text-muted-foreground pointer-events-none absolute left-2.5 size-4 select-none" />
            <Input
              id="time-from"
              type="time"
              step="1"
              defaultValue="10:30:00"
              className="appearance-none pl-8 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
            />
          </div>
        </div>
        <div className="flex w-full flex-col gap-3">
          <Label htmlFor="time-to">End Time</Label>
          <div className="relative flex w-full items-center gap-2">
            <Clock2Icon className="text-muted-foreground pointer-events-none absolute left-2.5 size-4 select-none" />
            <Input
              id="time-to"
              type="time"
              step="1"
              defaultValue="12:30:00"
              className="appearance-none pl-8 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
            />
          </div>
        </div>
      </CardFooter>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • calendar
  • card
  • input
  • label
  • lucide-react
  • react

Frequently Asked Questions

What does calendar-16.tsx do?
calendar-16.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-16.tsx?
calendar-16.tsx defines 1 function(s): Calendar16.
What does calendar-16.tsx depend on?
calendar-16.tsx imports 6 module(s): calendar, card, input, label, lucide-react, react.
Where is calendar-16.tsx in the architecture?
calendar-16.tsx is located at deprecated/www/registry/default/blocks/calendar-16.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