Home / Function/ Calendar19() — ui Function Reference

Calendar19() — ui Function Reference

Architecture documentation for the Calendar19() function in calendar-19.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b8747e4d_6b14_50a5_55a8_2d60cef3e03c["Calendar19()"]
  15ccdc4e_2239_e1c9_bd0f_3a365b1ed098["calendar-19.tsx"]
  b8747e4d_6b14_50a5_55a8_2d60cef3e03c -->|defined in| 15ccdc4e_2239_e1c9_bd0f_3a365b1ed098
  style b8747e4d_6b14_50a5_55a8_2d60cef3e03c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/__registry__/new-york/blocks/calendar-19.tsx lines 10–50

export default function Calendar19() {
  const [date, setDate] = React.useState<Date | undefined>(
    new Date(2025, 5, 12)
  )

  return (
    <Card className="max-w-[300px] py-4">
      <CardContent className="px-4">
        <Calendar
          mode="single"
          selected={date}
          onSelect={setDate}
          defaultMonth={date}
          className="bg-transparent p-0 [--cell-size:2.375rem]"
        />
      </CardContent>
      <CardFooter className="flex flex-wrap gap-2 border-t px-4 pb-0 pt-4">
        {[
          { label: "Today", value: 0 },
          { label: "Tomorrow", value: 1 },
          { label: "In 3 days", value: 3 },
          { label: "In a week", value: 7 },
          { label: "In 2 weeks", value: 14 },
        ].map((preset) => (
          <Button
            key={preset.value}
            variant="outline"
            size="sm"
            className="flex-1"
            onClick={() => {
              const newDate = addDays(new Date(), preset.value)
              setDate(newDate)
            }}
          >
            {preset.label}
          </Button>
        ))}
      </CardFooter>
    </Card>
  )
}

Subdomains

Frequently Asked Questions

What does Calendar19() do?
Calendar19() is a function in the ui codebase, defined in deprecated/www/__registry__/new-york/blocks/calendar-19.tsx.
Where is Calendar19() defined?
Calendar19() is defined in deprecated/www/__registry__/new-york/blocks/calendar-19.tsx at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free