Home / Function/ CalendarWeekNumbers() — ui Function Reference

CalendarWeekNumbers() — ui Function Reference

Architecture documentation for the CalendarWeekNumbers() function in calendar-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  f4624236_256b_5021_fa12_50ea1aa9f0b5["CalendarWeekNumbers()"]
  189fced7_34d5_a390_e619_8f0a05a614e2["calendar-example.tsx"]
  f4624236_256b_5021_fa12_50ea1aa9f0b5 -->|defined in| 189fced7_34d5_a390_e619_8f0a05a614e2
  style f4624236_256b_5021_fa12_50ea1aa9f0b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/calendar-example.tsx lines 516–536

function CalendarWeekNumbers() {
  const [date, setDate] = React.useState<Date | undefined>(
    new Date(new Date().getFullYear(), 1, 3)
  )

  return (
    <Example title="Week Numbers" className="justify-center">
      <Card className="mx-auto w-fit p-0">
        <CardContent className="p-0">
          <Calendar
            mode="single"
            defaultMonth={date}
            selected={date}
            onSelect={setDate}
            showWeekNumber
          />
        </CardContent>
      </Card>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does CalendarWeekNumbers() do?
CalendarWeekNumbers() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/calendar-example.tsx.
Where is CalendarWeekNumbers() defined?
CalendarWeekNumbers() is defined in apps/v4/registry/bases/radix/examples/calendar-example.tsx at line 516.

Analyze Your Own Codebase

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

Try Supermodel Free