GothUI

Forms

Textarea

A labeled multiline control for longer input.

components.Textarea · TextareaProps

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 →

This 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/GothUI/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."})
}