UNPKG

ch_react-horizontal-datepicker

Version:

A simple and lightweight easily style-able Side scrolling datepicker, built with ❤️

27 lines (20 loc) 550 B
import React from 'react'; import './App.css'; import { DatePicker } from "./components/DatePicker"; function App() { const selectedDay = (val) =>{ console.log(val) }; return ( <div className="App"> <DatePicker startDate={new Date()} days={90} endDate={100} selectDate={new Date()} getSelectedDay={selectedDay} labelFormat={"MMMM"} color={"#374e8c"}/> </div> ); } export default App;