<LocalizationProvider dateAdapter={AdapterDateFns}>
<DateRangeField value={value} onChange={(newValue) => setValue(newValue)} />
</LocalizationProvider>
Multi input
You can render the start and end date in standalone inputs using MultiInputDateRangeField
.
All the topics covered below are also applicable to this component unless explicitly mentioned.
to
<LocalizationProvider dateAdapter={AdapterDateFns}>
<MultiInputDateRangeField
value={value}
onChange={(newValue) => setValue(newValue)}
/>
</LocalizationProvider>