Home / Function/ Calendar30() — ui Function Reference

Calendar30() — ui Function Reference

Architecture documentation for the Calendar30() function in calendar-30.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b22e2e77_926c_6049_58e4_c457f294f0fb["Calendar30()"]
  e656187e_8d0c_1fc4_80ce_9cf73ae9d53c["calendar-30.tsx"]
  b22e2e77_926c_6049_58e4_c457f294f0fb -->|defined in| e656187e_8d0c_1fc4_80ce_9cf73ae9d53c
  style b22e2e77_926c_6049_58e4_c457f294f0fb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/blocks/calendar-30.tsx lines 17–56

export default function Calendar30() {
  const [range, setRange] = React.useState<DateRange | undefined>({
    from: new Date(2025, 5, 4),
    to: new Date(2025, 5, 10),
  })

  return (
    <div className="flex flex-col gap-3">
      <Label htmlFor="dates" className="px-1">
        Select your stay
      </Label>
      <Popover>
        <PopoverTrigger asChild>
          <Button
            variant="outline"
            id="dates"
            className="w-56 justify-between font-normal"
          >
            {range?.from && range?.to
              ? formatDateRange(range.from, range.to, {
                  includeTime: false,
                })
              : "Select date"}
            <ChevronDownIcon />
          </Button>
        </PopoverTrigger>
        <PopoverContent className="w-auto overflow-hidden p-0" align="start">
          <Calendar
            mode="range"
            selected={range}
            captionLayout="dropdown"
            onSelect={(range) => {
              setRange(range)
            }}
          />
        </PopoverContent>
      </Popover>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does Calendar30() do?
Calendar30() is a function in the ui codebase, defined in deprecated/www/registry/new-york/blocks/calendar-30.tsx.
Where is Calendar30() defined?
Calendar30() is defined in deprecated/www/registry/new-york/blocks/calendar-30.tsx at line 17.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free