aurelia-form
Version:
Makes working with forms just a tad more pleasant.
22 lines (18 loc) • 1.14 kB
Markdown
# form-textarea
The `<form-textarea />` component allows you to render a textarea block.
## Attributes
The following attributes (bindables) are available for this component.
| attribute | type | default | description |
|---|---|---|---|
| name | string | `''` | The name of the textarea |
| classes | string | `''` | Classes to add |
| value | string | `''` | The text to display within the textarea |
| placeholder | string | `''` | A short hint that describes the expected value |
| autofocus | boolean | `false` | Specifies to autofocus the textarea |
| required | boolean | `false` | Make the textarea required |
| cols | number | `undefined` | The visible width of the textarea |
| rows | number | `undefined` | The visible number of lines in the textarea |
| disabled | boolean | `false` | Specifies that the textarea should be disabled |
| maxlength | number | `undefined` | The maximum number of characters allowed in the text area |
| readonly | boolean | `false` | Specifies that the textarea should be read-only |
| wrap | string | `'hard'` | Specifies how the text in a text area is to be wrapped when submitted in a form |