This package has been deprecated

Author message:

This package has been deprecated. Please find this package under its new name @cloudflare/component-textarea.

cf-component-textarea

6.0.0 • Public • Published

cf-component-textarea

Cloudflare Textarea Component

Installation

Installation with yarn is recommended

 
$ yarn add cf-component-textarea
 

Usage

import React from 'react';
import { Textarea } from 'cf-component-textarea';
 
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 cf-component-textarea

Weekly Downloads

2

Version

6.0.0

License

BSD-3-Clause

Unpacked Size

14.5 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