0.2.6 • Published 5 months ago
mik-datepicker v0.2.6
mik-datepicker
Datepicker is a simple and reusable date picker component for React.
main features
- Select days, year, month, d-day
- Localizable into en-US
- using date-fns as date library
- Runtime type checking with PropTypes
installation
npm install mik-datepicker
Usage
import React, { useState } from "react";
import { DatePicker } from "mik-datepicker";
function Example() {
const [startDate, setStartDate] = useState(new Date());
return (
<div>
<DatePicker
selected={startDate}
onChange={(date) => setStartDate(date)}
/>
</div>
);
}