DocSpace-client/packages/components/textarea
2022-08-31 15:38:39 +03:00
..
index.js Web: Fixed property name for ColorTheme component, changed type => themeId 2022-08-31 15:38:39 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-textarea.js Web:Components:Returned a stylish Textarea, InputBlock. 2022-08-17 12:05:34 +03:00
textarea.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
textarea.test.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

Textarea

Textarea is used for displaying custom textarea

Usage

import Textarea from "@docspace/components/textarea";
<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
hasError bool - - - Indicates the input field has an error
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
fontSize number - - 13 Value for font-size
heightTextArea number - - - Value for height text-area