BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vengenceui/calendar

calendar

vengenceui/calendar
FreeComponent

vengenceui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by vengenceui on their own page — this is the component running, not a screenshot of it.

Install it

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

Source

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

What it pulls in

npm packages

  • lucide-react
  • react-day-picker

Files it writes

  • public/r/calendar.json

Facts

Registry
vengenceui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on vengenceui www.vengenceui.com Raw registry item This item as JSON

More from vengenceui

All 128 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionvengenceuiComponentsFree2 deps
agent-bento-gridagent-bento-gridvengenceuiComponentsFree1 dep
alertalertvengenceuiComponentsFreeno deps
animated-buttonanimated-buttonvengenceuiComponentsFree1 dep
animated-footeranimated-footervengenceuiComponentsFree2 deps
animated-numberanimated-numbervengenceuiComponentsFree1 dep
animated-raysanimated-raysvengenceuiComponentsFreeno deps
animated-tooltipanimated-tooltipvengenceuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex