calendar-06
showcase-elevenlabs/calendar-06FreeBlock
Range selection with minimum days
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/calendar-06.jsonSource
1"use client"23import * as React from "react"4import { type DateRange } from "react-day-picker"56import { Calendar } from "@/registry/new-york/ui/calendar"78export default function Calendar06() {9 const [dateRange, setDateRange] = React.useState<DateRange | undefined>({10 from: new Date(2025, 5, 12),11 to: new Date(2025, 5, 26),12 })1314 return (15 <div className="flex min-w-0 flex-col gap-2">16 <Calendar17 mode="range"18 defaultMonth={dateRange?.from}19 selected={dateRange}20 onSelect={setDateRange}21 numberOfMonths={1}22 min={5}23 className="rounded-lg border shadow-sm"24 />25 <div className="text-muted-foreground text-center text-xs">26 A minimum of 5 days is required27 </div>28 </div>29 )30}
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 357 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| calendar-01calendar-01 | shadcn/ui | Blocks | Free | no deps | |
| calendar-02calendar-02 | shadcn/ui | Blocks | Free | no deps | |
| calendar-03calendar-03 | shadcn/ui | Blocks | Free | no deps | |
| calendar-04calendar-04 | shadcn/ui | Blocks | Free | no deps | |
| calendar-05calendar-05 | shadcn/ui | Blocks | Free | no deps | |
| calendar-07calendar-07 | shadcn/ui | Blocks | Free | no deps | |
| calendar-08calendar-08 | shadcn/ui | Blocks | Free | no deps | |
| calendar-09calendar-09 | shadcn/ui | Blocks | Free | no deps |
