BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/calendar-23

calendar-23

accelya-ui-lib/calendar-23
FreeBlock

Date range picker

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/calendar-23.json

Source

blocks/calendar-23.tsxraw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/calendar-23.json
1"use client"
2
3import * as React from "react"
4import { ChevronDownIcon } from "lucide-react"
5import { type DateRange } from "react-day-picker"
6
7import { Button } from "@/registry/default/ui/button"
8import { Calendar } from "@/registry/default/ui/calendar"
9import { Label } from "@/registry/default/ui/label"
10import {
11 Popover,
12 PopoverContent,
13 PopoverTrigger,
14} from "@/registry/default/ui/popover"
15
16export default function Calendar23() {
17 const [range, setRange] = React.useState<DateRange | undefined>(undefined)
18
19 return (
20 <div className="flex flex-col gap-3">
21 <Label htmlFor="dates" className="px-1">
22 Select your stay
23 </Label>
24 <Popover>
25 <PopoverTrigger asChild>
26 <Button
27 variant="outline"
28 id="dates"
29 className="w-56 justify-between font-normal"
30 >
31 {range?.from && range?.to
32 ? `${range.from.toLocaleDateString()} - ${range.to.toLocaleDateString()}`
33 : "Select date"}
34 <ChevronDownIcon />
35 </Button>
36 </PopoverTrigger>
37 <PopoverContent className="w-auto overflow-hidden p-0" align="start">
38 <Calendar
39 mode="range"
40 selected={range}
41 captionLayout="dropdown"
42 onSelect={(range) => {
43 setRange(range)
44 }}
45 />
46 </PopoverContent>
47 </Popover>
48 </div>
49 )
50}

What it pulls in

Other registry items

  • calendar
  • popover
  • button
  • label

Files it writes

  • registry/default/blocks/calendar-23.tsx

Facts

Registry
shadcn/ui
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on shadcn/ui ramsaoji/Accelya-UI-Lib on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 357 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
calendar-01calendar-01shadcn/uiBlocksFreeno deps
calendar-02calendar-02shadcn/uiBlocksFreeno deps
calendar-03calendar-03shadcn/uiBlocksFreeno deps
calendar-04calendar-04shadcn/uiBlocksFreeno deps
calendar-05calendar-05shadcn/uiBlocksFreeno deps
calendar-06calendar-06shadcn/uiBlocksFreeno deps
calendar-07calendar-07shadcn/uiBlocksFreeno deps
calendar-08calendar-08shadcn/uiBlocksFreeno deps
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