1.2.4 • Published 5 days ago

@brighthr/daterangepicker v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 days ago

DateRangePicker

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-daterangepicker

To 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

NameTypeDefaultDescription
endDateDatenullValue for the end date.
errorbooleanfalseIf true, the input will show with a red theme.
legacyStylingbooleanfalseIf true, the calendar will have the older appearance.
localestring"en-gb"Changes the date formats to suit the selected locale.
maxDateDate'1900-01-01'
minDateDate'2100-12-31'
onBlur() => voidFunction for handling onBlur event.
onChange() => voidFunction for handling onChange event.
placeholderstring"Select date range"Sets the placeholder text for the input.
setEndDate(date) => voidFunction for setting the external state when the end date is set.
setStartDate(date) => voidFunction for setting the external state when the start date is set.
startDateDateValue for the start date.
1.2.4

5 days ago

1.2.3

2 months ago

1.2.2

4 months ago

1.2.1

5 months ago

1.2.0

8 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago

1.1.3

8 months ago

1.1.2

8 months ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.15

2 years ago

0.0.16

1 year ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago