@cloudflare/component-textarea
TypeScript icon, indicating that this package has built-in type declarations

4.1.6 • Public • Published

@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;

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudflare/component-textarea

Weekly Downloads

8,348

Version

4.1.6

License

BSD-3-Clause

Unpacked Size

180 kB

Total Files

9

Last publish

Collaborators

  • lerwincf
  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga