1.0.20 • Published 8 years ago
react-day-input v1.0.20
react-day-input
A simple date picker for React, powered by Moment.
Live Demo
Check out the live demo here: http://abasystems.github.io/react-day-input/
Installation
Install the package with npm:
npm install react-day-inputThen require and use with ES6 imports:
import React from 'react'
import { StrictDayInput } from 'react-day-input'
class MyForm extends React.Component {
constructor(props) {
super(props);
this.state = {
...this.state,
dueBy: null,
};
}
render() {
return (
<form>
<StrictDayInput
value={this.state.dueBy}
onChange={(newDate) => {
this.setState({dueBy: newDate});
}}
/>
<button type="submit">Submit</button>
</form>
);
}
}And include the built css with an import:
@import 'node_modules/react-day-input/dist/react-day-input.css';or tag:
<link href="static/node_modules/react-day-input/dist/react-day-input.css" rel="stylesheet">Full reference documentation coming soon. For now, take a look at the reference on the live demo at http://abasystems.github.io/react-day-input/.
1.0.20
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
10 years ago
1.0.9
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago