calendar-08
showcase-elevenlabs/calendar-08FreeBlock
Calendar with disabled days
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/calendar-08.jsonSource
1"use client"23import * as React from "react"45import { Calendar } from "@/registry/new-york/ui/calendar"67export default function Calendar08() {8 const [date, setDate] = React.useState<Date | undefined>(9 new Date(2025, 5, 12)10 )1112 return (13 <Calendar14 mode="single"15 defaultMonth={date}16 selected={date}17 onSelect={setDate}18 disabled={{19 before: new Date(2025, 5, 12),20 }}21 className="rounded-lg border shadow-sm"22 />23 )24}
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-09calendar-09 | shadcn/ui | Blocks | Free | no deps |
