1.2.4 • Published 2 years ago
@brighthr/daterangepicker v1.2.4
DateRangePicker
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-daterangepickerTo implement the DateRangePicker component into your project you’ll need to add the import:
import DateRangePicker from '@brighthr/daterangepicker';
import '@brighthr/daterangepicker/dist/index.css';After adding import into your project you can use it simply like:
<DateRangePicker />Props
| Name | Type | Default | Description |
|---|---|---|---|
| endDate | Date | null | Value for the end date. |
| error | boolean | false | If true, the input will show with a red theme. |
| legacyStyling | boolean | false | If true, the calendar will have the older appearance. |
| locale | string | "en-gb" | Changes the date formats to suit the selected locale. |
| maxDate | Date | '1900-01-01' | |
| minDate | Date | '2100-12-31' | |
| onBlur | () => void | Function for handling onBlur event. | |
| onChange | () => void | Function for handling onChange event. | |
| placeholder | string | "Select date range" | Sets the placeholder text for the input. |
| setEndDate | (date) => void | Function for setting the external state when the end date is set. | |
| setStartDate | (date) => void | Function for setting the external state when the start date is set. | |
| startDate | Date | Value for the start date. |
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
0.0.30
3 years ago
0.0.31
3 years ago
0.0.32
3 years ago
0.0.33
3 years ago
0.0.34
3 years ago
0.0.28
3 years ago
0.0.29
3 years ago
0.0.27
3 years ago
0.0.20
3 years ago
0.0.21
3 years ago
0.0.22
3 years ago
0.0.23
3 years ago
0.0.24
3 years ago
0.0.25
3 years ago
0.0.26
3 years ago
0.0.17
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.14
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago