1.0.2 • Published 8 years ago

@hnordt/reax-text-input v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Reax Text Input

Bootstrap Text Input component for React

npm version

PropTypes

{
  name: PropTypes.string,
  value: PropTypes.string,
  placeholder: PropTypes.string,
  maxLength: 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-text-input
import React from 'react';
import TextInput from '@hnordt/reax-text-input';

const Foo = () => (
  <TextInput
    placeholder="Foo"
    value="Bar"
    onChange={event => console.log(event.target.value)} />
);

export default Foo;
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago