date-selector-react
v1.2.6
Published
A date selector build with react
Downloads
15
Readme
date-selector-react-npm-package!
(https://im.ge/i/9jQ3tr)
A date selector for any react app.
- Select by days, months or even years
- No other packages needed
Before you continue
Date-Selector-React is under constant development. Check for latest updates.
Getting started
Compatibility
Your project needs to use React 18.2 or later.
How to install
The package can be install via npm npm i date-selector-react
Configuration
The most basic use of the DatePicker can be described with: < DatePicker clickedDate={clickedDate} setIsClicked={setIsClicked} />
| Prop name | Desciption | default value |
| --------------- | --------------------------------------------------------------------------------------------------------------- | ------------- |
| locale | 'Allow the user to change timezone available for en-US, fr-FR, es-ES, de-DE'
| 'en-us'
|
| color | 'Allow the user to change color on background and texts'
| 'red'
|
| todayBackground | 'Allow the user to change color on today's date background. 5 colors possible red, blue, orange, gray, green'
| 'red'
|