calendar-07
showcase-elevenlabs/calendar-07FreeBlock
Range selection with minimum and maximum days
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/calendar-07.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 Calendar07() {9 const [dateRange, setDateRange] = React.useState<DateRange | undefined>({10 from: new Date(2025, 5, 18),11 to: new Date(2025, 6, 7),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={2}22 min={2}23 max={20}24 className="rounded-lg border shadow-sm"25 />26 <div className="text-muted-foreground text-center text-xs">27 Your stay must be between 2 and 20 nights28 </div>29 </div>30 )31}
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-06calendar-06 | shadcn/ui | Blocks | Free | no deps | |
| calendar-08calendar-08 | shadcn/ui | Blocks | Free | no deps | |
| calendar-09calendar-09 | shadcn/ui | Blocks | Free | no deps |
