Calendar12() — ui Function Reference
Architecture documentation for the Calendar12() function in calendar-12.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 47ca37a6_d3b0_d98f_0fc9_26c91c688ea8["Calendar12()"] e211f1d0_9e0f_c385_b44d_86d944940939["calendar-12.tsx"] 47ca37a6_d3b0_d98f_0fc9_26c91c688ea8 -->|defined in| e211f1d0_9e0f_c385_b44d_86d944940939 style 47ca37a6_d3b0_d98f_0fc9_26c91c688ea8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/__registry__/default/blocks/calendar-12.tsx lines 34–78
export default function Calendar12() {
const [locale, setLocale] =
React.useState<keyof typeof localizedStrings>("es")
const [dateRange, setDateRange] = React.useState<DateRange | undefined>({
from: new Date(2025, 8, 9),
to: new Date(2025, 8, 17),
})
return (
<Card>
<CardHeader className="relative border-b">
<CardTitle>{localizedStrings[locale].title}</CardTitle>
<CardDescription>
{localizedStrings[locale].description}
</CardDescription>
<Select
value={locale}
onValueChange={(value) =>
setLocale(value as keyof typeof localizedStrings)
}
>
<SelectTrigger className="absolute right-4 top-4 w-[100px]">
<SelectValue placeholder="Language" />
</SelectTrigger>
<SelectContent align="end">
<SelectItem value="es">Español</SelectItem>
<SelectItem value="en">English</SelectItem>
</SelectContent>
</Select>
</CardHeader>
<CardContent className="pt-4">
<Calendar
mode="range"
selected={dateRange}
onSelect={setDateRange}
defaultMonth={dateRange?.from}
numberOfMonths={2}
locale={locale === "es" ? es : enUS}
className="bg-transparent p-0"
buttonVariant="outline"
/>
</CardContent>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar12() do?
Calendar12() is a function in the ui codebase, defined in deprecated/www/__registry__/default/blocks/calendar-12.tsx.
Where is Calendar12() defined?
Calendar12() is defined in deprecated/www/__registry__/default/blocks/calendar-12.tsx at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free