Package Exports
- paper-textarea
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (paper-textarea) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
<PaperTextarea />
Install
npm install paper-textarea
Using the Component
import PaperTextarea from 'paper-textarea';
Using the CSS
@import "/path/to/node_modules/paper-textarea/dist/paper-textarea.css";
API
name: String
: Required. Thename
attribute that will be attached to the<textarea>
element.label: String
: Required. The label that will be displayed on the<textarea>
element.defaultValue: String
: Optional.error: String
: Optional. An error message that is displayed below the component.onChange: Function
: Optional. Called on thechange
event on the<textarea>
.onResize: Function
: Optional. Called when the<textarea>
resizes.value: String
: Optional.
Example
<PaperTextarea
name='comment'
label='Your comment here'
error={this.state.error ? 'Please enter some text' : ''}
onChange={this.handleChange.bind(this)}
/>