The shadcn Calendar with week numbers, event dots and range selection.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { Calendar } from "@/components/ui/notchset/calendar";
/** Days with scheduled evals, keyed YYYY-MM-DD. */
const evals = { "2026-10-06": ["Planner core"], "2026-10-09": ["Citations", "Safety"] };
// `today` comes from the server (the request's date), so server and browser render the same month.
export function EvalCalendar({ today }: { today: Date }) {
const [day, setDay] = React.useState<Date | undefined>(today);
return <Calendar mode="single" selected={day} onSelect={setDay} events={evals} showWeekNumber showToday />;
}mode–
"single" | "range"One day, or a range (from, to).
selected / onSelect–
Date | DateRangeControlled, as shadcn's.
month / onMonthChange–
DateThe month shown.
disabled–
(date) => booleanDays that can't be picked.
startMonth / endMonth–
DateHow far the arrows go.
events–
Record<YYYY-MM-DD, string[]>Up to three dots a day, counted in its label.
showWeekNumber / showToday–
booleanISO weeks; a TODAY link.
size–
"default" | "sm"44px or 40px days.
Calendardata-slot="calendar"
The framed grid.
—data-slot="calendar-grid"
The header, weekdays and days.
—data-slot="calendar-block"
The selection block.
components/ui/notchset/calendar.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/calendar.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/calendar.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release