Due to issues with dependencies, this component has been temporarily excluded from the library.
The DateRange
component is a date picker for selecting a range of dates. It allows users to select a start and end date from a calendar. It provides custom labels, and date normalization to UTC.
npm i @gbit-lib/daterange
<DateRange
label="Select a date range"
firstDate={new Date('2023-01-01')}
lastDate={new Date('2023-12-31')}
handleChange={(start, end) => {
console.log('Selected range:', start, end)
}}
/>