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

calendar-26.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 7 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b780353c_99a4_7f18_da72_162241ebb7eb["calendar-26.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> d418ad18_b947_f4e5_6e4c_01100d7a63e4
  9296b496_7dcb_ebca_2184_14782807983b["calendar"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> 9296b496_7dcb_ebca_2184_14782807983b
  163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60
  f826d306_7d63_5ba3_6a53_387904d37a9f["label"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> f826d306_7d63_5ba3_6a53_387904d37a9f
  d1761ea6_65b9_f5fd_76e0_66663b00b300["popover"]
  b780353c_99a4_7f18_da72_162241ebb7eb --> d1761ea6_65b9_f5fd_76e0_66663b00b300
  style b780353c_99a4_7f18_da72_162241ebb7eb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

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

import { Button } from "@/registry/default/ui/button"
import { Calendar } from "@/registry/default/ui/calendar"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"
import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/registry/default/ui/popover"

export default function Calendar26() {
  const [openFrom, setOpenFrom] = React.useState(false)
  const [openTo, setOpenTo] = React.useState(false)
  const [dateFrom, setDateFrom] = React.useState<Date | undefined>(
    new Date("2025-06-01")
  )
  const [dateTo, setDateTo] = React.useState<Date | undefined>(
    new Date("2025-06-03")
  )

  return (
    <div className="flex w-full max-w-64 min-w-0 flex-col gap-6">
      <div className="flex gap-4">
        <div className="flex flex-1 flex-col gap-3">
          <Label htmlFor="date-from" className="px-1">
            Check-in
          </Label>
          <Popover open={openFrom} onOpenChange={setOpenFrom}>
            <PopoverTrigger asChild>
              <Button
                variant="outline"
                id="date-from"
                className="w-full justify-between font-normal"
              >
                {dateFrom
                  ? dateFrom.toLocaleDateString("en-US", {
                      day: "2-digit",
                      month: "short",
                      year: "numeric",
                    })
                  : "Select date"}
                <ChevronDownIcon />
              </Button>
            </PopoverTrigger>
            <PopoverContent
              className="w-auto overflow-hidden p-0"
              align="start"
            >
              <Calendar
                mode="single"
                selected={dateFrom}
                captionLayout="dropdown"
                onSelect={(date) => {
                  setDateFrom(date)
                  setOpenFrom(false)
// ... (74 more lines)

Subdomains

Functions

Dependencies

  • button
  • calendar
  • input
  • label
  • lucide-react
  • popover
  • react

Frequently Asked Questions

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