Forms
Textarea
A labeled multiline control for longer input.
components.Textarea · TextareaProps
Preview
Open standalone preview →Use it well.
Rows and MaxLength are browser hints. Validate content and length on the server, preserving invalid input for correction.
Explore the full demo →Templ example
Download example.templThis is the source compiled for the preview. Select the text to copy it, or download the file. Change the package name and demo routes for your application.
package examples
import "github.com/Tend-Stack/TendUI/v2026/components"
templ ExampleTextarea() {
@components.Textarea(components.TextareaProps{ID: "sample-note", Name: "note", Label: "Project note", Rows: 3, Placeholder: "Leave room for a small idea."})
}