Calendar27() — ui Function Reference
Architecture documentation for the Calendar27() function in calendar-27.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1413c2ee_c85e_f6d9_7a85_66410e76990e["Calendar27()"] c2fd4554_16af_e4a9_1955_991bafe391dd["calendar-27.tsx"] 1413c2ee_c85e_f6d9_7a85_66410e76990e -->|defined in| c2fd4554_16af_e4a9_1955_991bafe391dd style 1413c2ee_c85e_f6d9_7a85_66410e76990e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/__registry__/new-york/blocks/calendar-27.tsx lines 72–177
export default function Calendar27() {
const [range, setRange] = React.useState<DateRange | undefined>({
from: new Date(2025, 5, 5),
to: new Date(2025, 5, 20),
})
const filteredData = React.useMemo(() => {
if (!range?.from && !range?.to) {
return chartData
}
return chartData.filter((item) => {
const date = new Date(item.date)
return date >= range.from! && date <= range.to!
})
}, [range])
return (
<Card className="@container/card w-full max-w-xl">
<CardHeader className="@md/card:grid relative flex flex-col border-b">
<CardTitle>Web Analytics</CardTitle>
<CardDescription>
Showing total visitors for this month.
</CardDescription>
<Popover>
<PopoverTrigger asChild>
<Button variant="outline" className="absolute right-4 top-4">
<CalendarIcon />
{range?.from && range?.to
? `${range.from.toLocaleDateString()} - ${range.to.toLocaleDateString()}`
: "June 2025"}
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto overflow-hidden p-0" align="end">
<Calendar
className="w-full"
mode="range"
defaultMonth={range?.from}
selected={range}
onSelect={setRange}
disableNavigation
startMonth={range?.from}
fixedWeeks
showOutsideDays
disabled={{
after: new Date(2025, 5, 31),
}}
/>
</PopoverContent>
</Popover>
</CardHeader>
<CardContent className="px-4">
<ChartContainer
config={chartConfig}
className="aspect-auto h-[250px] w-full"
>
<BarChart
accessibilityLayer
data={filteredData}
margin={{
left: 12,
right: 12,
}}
>
<CartesianGrid vertical={false} />
<XAxis
dataKey="date"
tickLine={false}
axisLine={false}
tickMargin={8}
minTickGap={20}
tickFormatter={(value) => {
const date = new Date(value)
return date.toLocaleDateString("en-US", {
day: "numeric",
})
}}
/>
<ChartTooltip
content={
<ChartTooltipContent
className="w-[150px]"
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar27() do?
Calendar27() is a function in the ui codebase, defined in deprecated/www/__registry__/new-york/blocks/calendar-27.tsx.
Where is Calendar27() defined?
Calendar27() is defined in deprecated/www/__registry__/new-york/blocks/calendar-27.tsx at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free