Docs
Calendar
Calendar
A date field component that allows users to enter and edit date.
June 2024
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
About
The Calendar component is built on top of React DayPicker.
Usage
import { Calendar } from '@bit/ui'const [date, setDate] = React.useState<Date | undefined>(new Date())
return (
<Calendar
mode="single"
selected={date}
onSelect={setDate}
className="rounded-md border"
/>
)See the React DayPicker documentation for more information.