An open API service indexing awesome lists of open source software.

https://github.com/uptick/react-day-input

A simple date picker for react, powered by Moment.
https://github.com/uptick/react-day-input

Last synced: about 1 year ago
JSON representation

A simple date picker for react, powered by Moment.

Awesome Lists containing this project

README

          

# react-day-input

[![npm version](https://badge.fury.io/js/react-day-input.svg)](http://badge.fury.io/js/react-day-input)
![Downloads](http://img.shields.io/npm/dm/react-day-input.svg?style=flat)

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-input
```

Then require and use with ES6 imports:

```javascript
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 (

{
this.setState({dueBy: newDate});
}}
/>
Submit

);
}
}
```

And include the built css with an import:

```scss
@import 'node_modules/react-day-input/dist/react-day-input.css';

```

or tag:

```html

```

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/.