datepicker-benoitmouly
v1.0.12
Published
Custom datepicker made for React, using css and js
Downloads
3
Maintainers
Readme
DatePicker-BenoitMouly REACT
This custom react datepicker could be useful for having a customizable datepicker, instead of having heavy libraries or traditionnal datepicker given by navigator.
Available Scripts
In the project directory, you can run:
npm install datepicker-benoitmouly
It installs needed depedencies
Usage
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.
Stylizing
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.
Depedencies
dayjs, react
NPM version : 9.5.0
Latest test :
- dayjs 1.11.9
- react 18.2.0