Home / Function/ CalendarDemo() — ui Function Reference

CalendarDemo() — ui Function Reference

Architecture documentation for the CalendarDemo() function in calendar-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fd89fe21_9f11_8613_fbe5_a9a27b33b668["CalendarDemo()"]
  a87a17d9_214a_a9b8_73e3_54375eba3ae9["calendar-demo.tsx"]
  fd89fe21_9f11_8613_fbe5_a9a27b33b668 -->|defined in| a87a17d9_214a_a9b8_73e3_54375eba3ae9
  style fd89fe21_9f11_8613_fbe5_a9a27b33b668 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/internal/sink/components/calendar-demo.tsx lines 7–18

export function CalendarDemo() {
  const [date, setDate] = React.useState<Date | undefined>(new Date())

  return (
    <Calendar
      mode="single"
      selected={date}
      onSelect={setDate}
      className="rounded-md border shadow"
    />
  )
}

Subdomains

Frequently Asked Questions

What does CalendarDemo() do?
CalendarDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/calendar-demo.tsx.
Where is CalendarDemo() defined?
CalendarDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/calendar-demo.tsx at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free