Calendar
A date field component that enables users to choose and edit a date.
Loading...
Installation
npx shadcn@latest add @scrollxui/calendar Usage
import { Calendar } from '@/components/ui/calendar';const [date, setDate] = React.useState<Date | undefined>(new Date());
return (
<Calendar
mode='single'
selected={date}
onSelect={setDate}
className='rounded-lg border'
/>
);Examples
YearOrder
Loading...
Disabled Days
Loading...
Single month with range selection
Loading...
Multiple month with range selection
Loading...
Multiple months
Loading...
Date Of Birth Picker
Loading...
Month and Year Selector
Loading...
Date & Time Picker
Loading...
API Reference
Calendar
A date field component that enables users to choose and edit a date.