Reax Text Area
Bootstrap Text Area component for React
PropTypes
{
name: PropTypes.string,
rows: PropTypes.number,
placeholder: PropTypes.string,
value: 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-area
import React from 'react';
import TextArea from '@hnordt/reax-text-area';
const Foo = () => (
<TextArea
placeholder="Foo"
value="Bar"
onChange={event => console.log(event.target.value)} />
);
export default Foo;