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

1.0.1 • Public • Published

react-textarea

Textarea with autosize for react.

version license size download

installation

npm install -S @jswork/react-textarea

properties

Name Type Required Default Description
className string false - The extended className for component.
value object false null Default value.
onChange func false noop The change handler.

usage

  1. import css
@import "~@jswork/boilerplate-react-component/dist/style.css";

// or use sass
@import "~@jswork/boilerplate-react-component/dist/style.scss";

// customize your styles:
$boilerplate-react-component-options: ()
  1. import js
import React from 'react';
import ReactTextarea from '../@jswork/boilerplate-react-component';
import styled from 'styled-components';

const Container = styled.div`
  width: 80%;
  margin: 30px auto 0;
`;

export default (props: any) => {
  return (
    <Container>
      <ReactTextarea />
    </Container>
  );
};

license

Code released under the MIT license.

Dependencies (4)

Dev Dependencies (40)

Package Sidebar

Install

npm i @jswork/react-textarea

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

8.92 kB

Total Files

8

Last publish

Collaborators

  • afeiship