3.0.2 • Published 4 years ago
react-horizontal-strip-datepicker v3.0.2
This project was bootstrapped with Create React App.
Available Scripts
In the project directory, you can run:
react-horizontal-strip-datepicker
A stable horizontal date picker with the option to scroll for web
Installation
Run yarn add react-horizontal-strip-datepicker
Usage
Import:
import ReactHorizontalDatePicker from "react-horizontal-strip-datepicker";
and use as:
<ReactHorizontalDatePicker
selectedDay={onSelectedDay}
enableScroll={true}
enableDays={80}
/>
Available Props are
Prop | Type | Default | Description |
---|---|---|---|
enableScroll | Boolean | false | Set List to be scrollable |
selectedDay | Function | Function to get the selected Day | |
enableDays | Number | 90 | Number of days to render from current date |
enableDays has no effect if enableScroll is true.
Example:
import React from 'react'
import ReactHorizontalDatePicker from 'react-horizontal-strip-datepicker'
import 'react-horizontal-strip-datepicker/dist/ReactHorizontalDatePicker.css'
const App = () => {
const onSelectedDay = (d) => {
console.log(d)
}
return (
<ReactHorizontalDatePicker
selectedDay={onSelectedDay}
enableScroll={true}
enableDays={180}
/>
)
}
export default App
3.0.2
4 years ago
3.0.0
5 years ago
2.0.0
5 years ago
1.0.0
5 years ago
0.1.16
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago