Installation
templui add textareaLoad the script once in your layout:
<head>
@textarea.Script()
</head>Examples
Custom Rows
Auto Resize
With Label
Disabled
Form
Please type your message in the textarea.
This message is required.
API Reference
Required parameter
Hover for description
Textarea
Multi-line text field component for longer form content with auto-resize capability.
| Name | Type | Default |
|---|---|---|
Unique identifier for the textarea element. | | - |
Additional CSS classes to apply to the textarea. | | - |
Additional HTML attributes to apply to the textarea element. | | - |
Name attribute for form submission. | | - |
Placeholder text displayed when textarea is empty. | | - |
Initial value of the textarea. | | - |
Number of visible text lines in the textarea. | | |
Whether the textarea is disabled and non-interactive. | | |
Whether the textarea should automatically resize based on content. | | |
Whether the textarea is read-only. | | |