Home / File/ calendar-hijri.tsx — ui Source File

calendar-hijri.tsx — ui Source File

Architecture documentation for calendar-hijri.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 7 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  5fee80a6_338a_f156_d984_62ce7412ecc0["calendar-hijri.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  85256a8d_6bc0_0b85_aeec_351b43eef6a7["google"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> 85256a8d_6bc0_0b85_aeec_351b43eef6a7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  bfc8708c_7488_3983_8998_32b793781735["react-day-picker"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> bfc8708c_7488_3983_8998_32b793781735
  67638f4d_f691_d64e_3857_a0488c08b6bf["persian"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> 67638f4d_f691_d64e_3857_a0488c08b6bf
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  5fee80a6_338a_f156_d984_62ce7412ecc0 --> 57e86e45_ac6e_7278_be08_9092724e8401
  style 5fee80a6_338a_f156_d984_62ce7412ecc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Vazirmatn } from "next/font/google"
import {
  ChevronDownIcon,
  ChevronLeftIcon,
  ChevronRightIcon,
} from "lucide-react"
import { getDefaultClassNames, type DayButton } from "react-day-picker"
import { DayPicker } from "react-day-picker/persian"

import { cn } from "@/lib/utils"
import { Button, buttonVariants } from "@/registry/new-york-v4/ui/button"

const vazirmatn = Vazirmatn({ subsets: ["arabic"] })

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

  return (
    <div className={vazirmatn.className}>
      <Calendar
        mode="single"
        defaultMonth={date}
        selected={date}
        onSelect={setDate}
        className="rounded-lg border shadow-sm"
      />
    </div>
  )
}

// ----------------------------------------------------------------------------
// The code below is for this example only.
// For your own calendar, you would edit the calendar.tsx component directly.
// ----------------------------------------------------------------------------
function Calendar({
  className,
  classNames,
  showOutsideDays = true,
  captionLayout = "label",
  buttonVariant = "ghost",
  formatters,
  components,
  ...props
}: React.ComponentProps<typeof DayPicker> & {
  buttonVariant?: React.ComponentProps<typeof Button>["variant"]
}) {
  const defaultClassNames = getDefaultClassNames()

  return (
    <DayPicker
      showOutsideDays={showOutsideDays}
      className={cn(
        "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
        String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
        String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
// ... (175 more lines)

Subdomains

Dependencies

  • button
  • google
  • lucide-react
  • persian
  • react
  • react-day-picker
  • utils

Frequently Asked Questions

What does calendar-hijri.tsx do?
calendar-hijri.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in calendar-hijri.tsx?
calendar-hijri.tsx defines 3 function(s): Calendar, CalendarDayButton, CalendarHijri.
What does calendar-hijri.tsx depend on?
calendar-hijri.tsx imports 7 module(s): button, google, lucide-react, persian, react, react-day-picker, utils.
Where is calendar-hijri.tsx in the architecture?
calendar-hijri.tsx is located at apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free