BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/thegridcn/calendar

Calendar

thegridcn/calendar
FreeComponent

thegridcn publishes no description for this item.

Install it

npx shadcn@latest add https://thegridcn.com/r/calendar.json

Source

src/components/ui/calendar.tsxthegridcn.com/r/calendar.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import {
5 ChevronDownIcon,
6 ChevronLeftIcon,
7 ChevronRightIcon,
8} from "lucide-react"
9import {
10 DayPicker,
11 getDefaultClassNames,
12 type DayButton,
13} from "react-day-picker"
14
15import { cn } from "@/lib/utils"
16import { Button, buttonVariants } from "@/components/ui/button"
17
18function Calendar({
19 className,
20 classNames,
21 showOutsideDays = true,
22 captionLayout = "label",
23 buttonVariant = "ghost",
24 formatters,
25 components,
26 ...props
27}: React.ComponentProps<typeof DayPicker> & {
28 buttonVariant?: React.ComponentProps<typeof Button>["variant"]
29}) {
30 const defaultClassNames = getDefaultClassNames()
31
32 return (
33 <DayPicker
34 showOutsideDays={showOutsideDays}
35 className={cn(
36 "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
37 String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
38 String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
39 className
40 )}
41 captionLayout={captionLayout}
42 formatters={{
43 formatMonthDropdown: (date) =>
44 date.toLocaleString("default", { month: "short" }),
45 ...formatters,
46 }}
47 classNames={{
48 root: cn("w-fit", defaultClassNames.root),
49 months: cn(
50 "flex gap-4 flex-col md:flex-row relative",
51 defaultClassNames.months
52 ),
53 month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
54 nav: cn(
55 "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
56 defaultClassNames.nav
57 ),
58 button_previous: cn(
59 buttonVariants({ variant: buttonVariant }),
60 "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
61 defaultClassNames.button_previous
62 ),
63 button_next: cn(
64 buttonVariants({ variant: buttonVariant }),
65 "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
66 defaultClassNames.button_next
67 ),
68 month_caption: cn(
69 "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
70 defaultClassNames.month_caption
71 ),
72 dropdowns: cn(
73 "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
74 defaultClassNames.dropdowns
75 ),
76 dropdown_root: cn(
77// … truncated

What it pulls in

npm packages

  • lucide-react
  • react-day-picker

Other registry items

  • button

Files it writes

  • src/components/ui/calendar.tsx

Facts

Registry
thegridcn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

thegridcn.com Raw registry item This item as JSON

More from thegridcn

All 139 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionthegridcnComponentsFree2 deps
Agent Avataragent-avatarthegridcnComponentsFreeno deps
AlertalertthegridcnComponentsFree1 dep
Alert Dialogalert-dialogthegridcnComponentsFree1 dep
Announcement Barannouncement-barthegridcnComponentsFreeno deps
Anomaly Banneranomaly-bannerthegridcnComponentsFreeno deps
Arrival Panelarrival-panelthegridcnComponentsFreeno deps
Aspect Ratioaspect-ratiothegridcnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex