Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research Alternate Datepicker / Timepicker Library Options #2667

Closed
tn3rb opened this issue Apr 7, 2020 · 6 comments
Closed

Research Alternate Datepicker / Timepicker Library Options #2667

tn3rb opened this issue Apr 7, 2020 · 6 comments

Comments

@tn3rb
Copy link
Member

tn3rb commented Apr 7, 2020

Chakra UI has no datepicker nor timepicker therefore we need to find alternatives

  • please list potential candidates here with a brief list of pros/cons for each (if easily possible)
@nicolad
Copy link
Contributor

nicolad commented Apr 7, 2020

First option, since we used that before is the components from blueprint:


interesting aspect about those: DatePicker is built on top of the react-day-picker library.


in case we will need to create our own clone, it has: Apache License 2.0

@nicolad
Copy link
Contributor

nicolad commented Apr 7, 2020

another option is DateTimePicker from GB, which uses react-dates under the hood

@nicolad
Copy link
Contributor

nicolad commented Apr 7, 2020

since those 2 ☝️ relies on external libs under the hood, I've taken a quick look at top 3 libs 👇

@nicolad
Copy link
Contributor

nicolad commented Apr 7, 2020

Library Pros Cons Stars
react-dates - backed up by airbnb
- internationalizable, accessible, mobile-friendly
- theme support
- no TS support, it uses just PropTypes
- it uses react-with-styles for library initilization
- they do provide a way to override styles
- they use interfaces for styles a bit uncommon way for CSS
10k
react-datepicker Localization relies on date-fns
- Accessibility support
- no TS support
-
4.6k
react-day-picker - v8 is coming! The next version will be a rewrite in TypeScript. Read more here
- Localizable
- no TS support yet, TBD 3.7k

@tn3rb
Copy link
Member Author

tn3rb commented Apr 7, 2020

that link you posted regarding react-day-picker v8 also states that they will be rewriting to use date-fns as well as TypeScript

@manzoorwanijk
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants