calendar-14
showcase-elevenlabs/calendar-14FreeBlock
With Booked/Unavailable Days
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/calendar-14.jsonSource
1"use client"23import * as React from "react"45import { Calendar } from "@/registry/new-york/ui/calendar"67export default function Calendar14() {8 const [date, setDate] = React.useState<Date | undefined>(9 new Date(2025, 5, 12)10 )11 const bookedDates = Array.from(12 { length: 12 },13 (_, i) => new Date(2025, 5, 15 + i)14 )1516 return (17 <Calendar18 mode="single"19 defaultMonth={date}20 selected={date}21 onSelect={setDate}22 disabled={bookedDates}23 modifiers={{24 booked: bookedDates,25 }}26 modifiersClassNames={{27 booked: "[&>button]:line-through opacity-100",28 }}29 className="rounded-lg border shadow-sm"30 />31 )32}
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-07calendar-07 | shadcn/ui | Blocks | Free | no deps | |
| calendar-08calendar-08 | shadcn/ui | Blocks | Free | no deps |
