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;
Package Sidebar
Install
npm i cf-component-textarea
Weekly Downloads