2019-08-06 13:36:41 +00:00
|
|
|
# Input: Textarea
|
2019-07-29 16:42:44 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
2019-08-06 13:36:41 +00:00
|
|
|
import { Textarea } from 'asc-web-components';
|
2019-07-29 16:42:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
2019-08-06 13:36:41 +00:00
|
|
|
Textarea is used for displaying custom textarea
|
2019-07-29 16:42:44 +00:00
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
2019-08-06 13:36:41 +00:00
|
|
|
<Textarea placeholder="Add comment" onChange={event => alert(event.target.value) value='value' />
|
2019-07-29 16:42:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ---------------------- | -------- | :------: | ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------ |
|
2019-08-06 13:36:41 +00:00
|
|
|
| `value` | `string` | - | - | - | Value for Textarea |
|
|
|
|
| `placeholder` | `string` | - | - | - | Placeholder for Textarea |
|
2019-07-31 12:44:48 +00:00
|
|
|
| `onChange` | `func` | - | - | - | Allow you to handle changing events of component
|
|
|
|
| `id` | `string` | - | - | - | Used as HTML `id` property |
|
|
|
|
| `name` | `string` | - | - | - | Used as HTML `name` property | |
|
|
|
|
| `isDisabled` | `bool` | - | - | `false` | Indicates that the field cannot be used |
|
|
|
|
| `isReadOnly` | `bool` | - | - | `false` | Indicates that the field is displaying read-only content|
|