1.1.0 • Published 10 years ago

@hnordt/reax-date-input v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 years ago

Reax Date Input

Bootstrap Date Input component for React

npm version

PropTypes

{
  name: PropTypes.string,
  value: PropTypes.string,
  min: PropTypes.string,
  max: PropTypes.string,
  step: PropTypes.oneOfType(PropTypes.string, PropTypes.number),
  autoFocus: PropTypes.bool,
  readOnly: PropTypes.bool,
  disabled: PropTypes.bool,
  onFocus: PropTypes.func,
  onChange: PropTypes.func,
  onBlur: PropTypes.func
}

Usage

npm install --save @hnordt/reax-date-input
import React from 'react';
import moment from 'moment';
import DateInput from '@hnordt/reax-date-input';

const Foo = () => (
  <DateInput
    value={moment().format('YYYY-MM-DD')}
    max={moment().format('YYYY-MM-DD')}
    onChange={event => console.log(event.target.value)} />
);

export default Foo;

Important: if you want to support browsers that hasn't native date input support you must include React DatePicker CSS in your project

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago