DocSpace-buildtools/web/ASC.Web.Components/src/components/textarea
2019-12-17 13:49:53 +03:00
..
index.js web.components: Textarea: refactoring 2019-12-17 13:49:53 +03:00
README.md web: Components: Added id, className and style property for Textarea component. Added tests. 2019-12-03 16:42:55 +03:00
textarea.stories.js web: components: Moved story for Textarea + added base test 2019-09-08 19:14:13 +03:00
textarea.test.js web: Components: Fixed tests for FilterInput, TextInput and Textarea components 2019-12-05 10:24:32 +03:00

Textarea

Textarea is used for displaying custom textarea

Usage

import { Textarea } from "asc-web-components";
<Textarea
  placeholder="Add comment"
  onChange={event => alert(event.target.value)}
  value="value"
/>

Properties

Props Type Required Values Default Description
className string - - - Class name
id string - - - Used as HTML id property
isDisabled bool - - false Indicates that the field cannot be used
isReadOnly bool - - false Indicates that the field is displaying read-only content
name string - - - Used as HTML name property
onChange func - - - Allow you to handle changing events of component
placeholder string - - - Placeholder for Textarea
style obj, array - - - Accepts css style
value string - - - Value for Textarea