calendar-19
showcase-elevenlabs/calendar-19FreeBlock
With presets
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/calendar-19.jsonSource
1"use client"23import * as React from "react"4import { addDays } from "date-fns"56import { Button } from "@/registry/new-york/ui/button"7import { Calendar } from "@/registry/new-york/ui/calendar"8import { Card, CardContent, CardFooter } from "@/registry/new-york/ui/card"910export default function Calendar19() {11 const [date, setDate] = React.useState<Date | undefined>(12 new Date(2025, 5, 12)13 )1415 return (16 <Card className="max-w-[300px] py-4">17 <CardContent className="px-4">18 <Calendar19 mode="single"20 selected={date}21 onSelect={setDate}22 defaultMonth={date}23 className="bg-transparent p-0 [--cell-size:2.375rem]"24 />25 </CardContent>26 <CardFooter className="flex flex-wrap gap-2 border-t px-4 pb-0 pt-4">27 {[28 { label: "Today", value: 0 },29 { label: "Tomorrow", value: 1 },30 { label: "In 3 days", value: 3 },31 { label: "In a week", value: 7 },32 { label: "In 2 weeks", value: 14 },33 ].map((preset) => (34 <Button35 key={preset.value}36 variant="outline"37 size="sm"38 className="flex-1"39 onClick={() => {40 const newDate = addDays(new Date(), preset.value)41 setDate(newDate)42 }}43 >44 {preset.label}45 </Button>46 ))}47 </CardFooter>48 </Card>49 )50}
What it pulls in
npm packages
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 |
