Skip to content

Commit

Permalink
Add note on native alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Dec 11, 2023
1 parent 4040ace commit 66df309
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-date-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ A minimal demo page can be found in `sample` directory.

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

## Consider native alternative

If you don't need to support legacy browsers and don't need the advanced features this package provides, consider using native date input instead. It's more accessible, adds no extra weight to your bundle, and works better on mobile devices.

```tsx
<input aria-label="Date" type="date" />
```

## Looking for a time picker or a datetime picker?

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

0 comments on commit 66df309

Please sign in to comment.