DateRangePicker

Capture dates range from user
Import

Usage

import { useState } from 'react';
import { DateRangePicker } from '@mantine/dates';
function Demo() {
const [value, setValue] = useState<[Date, Date]>([new Date(2021, 11, 1), new Date(2021, 11, 5)]);
return (
<DateRangePicker
label="Book hotel"
placeholder="Pick dates range"
value={value}
onChange={setValue}
/>
);
}

Multiple months

<DateRangePicker amountOfMonths={2} label="2 months" />
<DateRangePicker amountOfMonths={3} label="3 months" />

DatePicker props

DateRangePicker component uses the same props as DatePicker component. The only difference is in value, onChange and amountOfMonths props shown in previous examples.

Build fully functional accessible web applications faster than ever
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback