Home / Function/ Calendar16() — ui Function Reference

Calendar16() — ui Function Reference

Architecture documentation for the Calendar16() function in calendar-16.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  787d97f3_3b6b_6cf2_7240_bd3e4bed17d4["Calendar16()"]
  b87affd7_99d4_064c_822a_b6751011b923["calendar-16.tsx"]
  787d97f3_3b6b_6cf2_7240_bd3e4bed17d4 -->|defined in| b87affd7_99d4_064c_822a_b6751011b923
  style 787d97f3_3b6b_6cf2_7240_bd3e4bed17d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/__registry__/new-york/blocks/calendar-16.tsx lines 11–56

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free