datepicker-benoitmouly
Version:
Custom datepicker made for React, using css and js
45 lines (26 loc) • 1.23 kB
Markdown
This custom react datepicker could be useful for having a customizable datepicker, instead of having heavy libraries or traditionnal datepicker given by navigator.
In the project directory, you can run:
It installs needed depedencies
```react
import DatePickerCustom from "datepicker-benoitmouly";
const [dateofbirth, setBirth] = useState("");
<DatePickerCustom label='Date de début de contrat' getDate={setBirth} className="startdate" />
```
- ' getDate ', function. It could be a validator or a useState. Required.
- ' label ', string. Optionnal.
- ' className', string. Optionnal.
You can stylize it with their classes directly from the node modules. We prefered to give a basis of CSS to not interfer with your css rules.
> dayjs,
> react
---------------
NPM version : 9.5.0
Latest test :
- dayjs 1.11.9
- react 18.2.0
[](https://forthebadge.com) [](https://forthebadge.com)