DocSpace-client/packages/shared/components/textarea
2024-01-10 11:01:43 +03:00
..
index.tsx Shared:Components:Textarea: rewrite to typescript 2023-12-06 15:03:40 +03:00
README.md Client: fix wrong import - export for shared components 2024-01-10 11:01:43 +03:00
Textarea.stories.tsx Shared:Components:Textarea: rewrite to typescript 2023-12-06 15:03:40 +03:00
Textarea.styled.tsx Shared:Tests:Unit: add i18 mock, fix warnings 2023-12-29 16:06:40 +03:00
Textarea.test.tsx Shared:Components:Textarea: rewrite to typescript 2023-12-06 15:03:40 +03:00
Textarea.theme.tsx Shared:Components:Table\ColorTheme: rewrite to typescript 2023-12-20 12:14:18 +03:00
Textarea.tsx Client: fix after rewrite to typescript 2023-12-28 11:46:16 +03:00
Textarea.types.ts Shared:Components:fix warnings 2023-12-28 13:04:24 +03:00
Textarea.utils.ts Shared:Components:Textarea: rewrite to typescript 2023-12-06 15:03:40 +03:00

Textarea

Textarea is used for displaying custom textarea and beautified JSON object

Usage

import { Textarea } from "@docspace/shared/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