Skip to content

Commit a388b87

Browse files
committed
Add note on native alternative
1 parent 43a743d commit a388b87

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/react-datetime-picker/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ A minimal demo page can be found in `sample` directory.
1919

2020
[Online demo](https://projects.wojtekmaj.pl/react-datetime-picker/) is also available!
2121

22+
## Consider native alternative
23+
24+
If you don't need to support legacy browsers and don't need the advanced features this package provides, consider using native datetime input instead. It's more accessible, adds no extra weight to your bundle, and works better on mobile devices.
25+
26+
```tsx
27+
<input aria-label="Date and time" type="datetime-local" />
28+
```
29+
2230
## Looking for _just_ a date picker or a time picker?
2331

2432
React-DateTime-Picker will play nicely with [React-Date-Picker](https://github.com/wojtekmaj/react-date-picker) and [React-Time-Picker](https://github.com/wojtekmaj/react-time-picker). Check them out!

0 commit comments

Comments
 (0)