mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-02 13:07:46 +00:00
19 lines
359 B
TypeScript
19 lines
359 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Calendar } from "@/registry/default/ui/calendar"
|
|
|
|
export default function CalendarDemo() {
|
|
const [date, setDate] = React.useState<Date | undefined>(new Date())
|
|
|
|
return (
|
|
<Calendar
|
|
mode="single"
|
|
selected={date}
|
|
onSelect={setDate}
|
|
className="rounded-md border"
|
|
/>
|
|
)
|
|
}
|