@cloudflare/component-textarea

Cloudflare Textarea Component

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@cloudflare/component-textarea
Minified + gzip package size for @cloudflare/component-textarea in KB

Readme

@cloudflare/component-textarea

Cloudflare Textarea Component

Installation

Installation with yarn is recommended


$ yarn add @cloudflare/component-textarea

Usage

import React from 'react';
import { Textarea } from '../../src';

class TextareaComponent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      textareaValue: ''
    };
  }

  handleTextareaChange(e) {
    this.setState({
      textareaValue: e.target.value
    });
  }

  render() {
    return (
      <Textarea
        name="example"
        value={this.state.textareaValue}
        onChange={this.handleTextareaChange.bind(this)}
        rows={4}
      />
    );
  }
}

export default TextareaComponent;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.