DocSpace-client/packages/components/textarea
2023-06-28 10:16:41 +03:00
..
svg re-export path was changed to public directory 2023-02-14 16:01:42 +05:00
utils numeration was deleted 2023-02-10 16:05:24 +05:00
index.js web component fix scrollbar in textarea 2023-06-28 10:16:41 +03:00
README.md props description was formatted 2023-02-10 16:04:33 +05:00
styled-textarea.js web component fix scrollbar in textarea 2023-06-28 10:16:41 +03:00
textarea.stories.js isLimitedWidth prop was deleted / showCopyIcon was renamed to enableCopy 2023-04-03 16:29:57 +05:00
textarea.test.js isJSONField and copyInfoText props are tested 2023-01-22 16:56:40 +05:00

Textarea

Textarea is used for displaying custom textarea and beautified JSON object

Usage

import Textarea from "@docspace/components/textarea";
<Textarea
  placeholder="Add comment"
  onChange={(event) => alert(event.target.value)}
  value="value"
  isJSONField={false}
/>

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
isJSONField bool - - false Indicates that the field is displaying JSON object
copyInfoText string - - Content was copied successfully! Indicates the text of toast/informational alarm