calendar-hijri.tsx — ui Source File
Architecture documentation for calendar-hijri.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8ee601f3_23d4_3a02_3586_329d42fd8aea["calendar-hijri.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 85256a8d_6bc0_0b85_aeec_351b43eef6a7["google"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> 85256a8d_6bc0_0b85_aeec_351b43eef6a7 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 bfc8708c_7488_3983_8998_32b793781735["react-day-picker"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> bfc8708c_7488_3983_8998_32b793781735 67638f4d_f691_d64e_3857_a0488c08b6bf["persian"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> 67638f4d_f691_d64e_3857_a0488c08b6bf 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 8ee601f3_23d4_3a02_3586_329d42fd8aea --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style 8ee601f3_23d4_3a02_3586_329d42fd8aea 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/base/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`,
// ... (174 more lines)
Domain
Subdomains
Dependencies
- button
- lucide-react
- persian
- react
- react-day-picker
- utils
Source
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/base/calendar-hijri.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free