JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36470F
  • License Apache-2.0

Paper Textarea React component

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 />

Circle CI

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. The name 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 the change 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)}
/>