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 DocumentationAtlas SearchAPI 7 imports 3 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Vazirmatn } from "next/font/google"
import { Button, buttonVariants } from "@/examples/radix/ui/button"
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"

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"
      />
    </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 DocumentationAtlas domain, SearchAPI 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/examples/radix/calendar-hijri.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free