Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.67 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.67 KB

GitHub version @airbnb @UsulPro @sm-react sm-artlight.slack.com

react-smart-textarea

React textarea: easy, transparent textarea component for ReactJS (autoheight, adjustable, responsive text input element) access to textarea attributes and textarea style

Live demo

Live demo

Usage

import SmTextarea from 'SmartTextarea.jsx';

simple

<SmTextarea 
  onChange={(e) => console.log(e)}
/>

set hint text

<SmTextarea
  onChange={(e) => console.log(e)} 
  hintText="enter text here"
/>

some style

<SmTextarea
        style={{border: "solid 1px rgb(169, 169, 169)", padding: {4}, paddingLeft: {8},}}
        styleMouseOver={{}}
        styleFocus={{outlineColor: "rgb(77, 144, 254)", outlineOffset: {-2}, outlineStyle: "auto", }}
        hintText="chrome style"
      />

Codeship Status for sm-react/react-smart-textarea