@react-ag-components/datetime
v0.1.12
Published
React Date Time component
Downloads
7
Keywords
Readme
input
React component for DateTime (extra information)
original datetime component from https://www.npmjs.com/package/material-ui-datetimepicker https://github.com/dmtrKovalenko/material-ui-datetimepicker
Pre-requisite
Requires material ui v0
Usage
Install
npm i @react-ag-components/datetime --save
Use in your project
import DateTimePicker from '@react-ag-components/datetime'
<DateTimePicker
value={this.state.startDateTime}
onChange={this.onChange('startDateTime')}
label="Start date time"
/>
Properties
| Property | Default | Description | | -------- |:-------------:|-------------------------------------------:| | format | 'DD MMMM YYYY hh:mm A' | moment date format |
Contributing
Get the repository
git clone https://github.com/alphillips/datetime.git
Update dependencies
npm install
Run the project
npm start
Deploy to npm
Build
npm run build -- --copy-files
Publish
npm publish --access public