mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
27 lines
574 B
TypeScript
27 lines
574 B
TypeScript
"use client"
|
|
|
|
import { addDays } from "date-fns"
|
|
|
|
import { Calendar } from "@/registry/new-york/ui/calendar"
|
|
import { Card, CardContent } from "@/registry/new-york/ui/card"
|
|
|
|
const start = new Date(2023, 5, 5)
|
|
|
|
export function CardsCalendar() {
|
|
return (
|
|
<Card className="max-w-[260px]">
|
|
<CardContent className="p-1">
|
|
<Calendar
|
|
numberOfMonths={1}
|
|
mode="range"
|
|
defaultMonth={start}
|
|
selected={{
|
|
from: start,
|
|
to: addDays(start, 8),
|
|
}}
|
|
/>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|