wakushi-date-picker
v1.0.4
Published
A simple date picker component for React.
Downloads
1
Readme
Wakushi Date Picker
A simple and customizable date picker component for React.
Installation
npm install wakushi-date-picker
Usage
import React from "react"
import DatePicker from "wakushi-date-picker"
import "wakushi-date-picker/dist/DatePicker.css"
function App() {
const [formValues, setFormValues] = useState({
birthdate: "",
})
return (
<DatePicker
value={formValues.birthdate}
onChange={(date) =>
setFormValues((prevFormValues) => ({
...prevFormValues,
birthdate: date,
}))
}
/>
)
}
export default App
Licence
MIT