xtablo-source/go-backend/internal/web/ui/textarea.templ
2026-05-09 20:18:24 +02:00

21 lines
426 B
Text

package ui
type TextareaProps struct {
ID string
Name string
Value string
Placeholder string
Rows int
Attrs templ.Attributes
}
templ Textarea(props TextareaProps) {
<textarea
id={ inputID(props.ID, props.Name) }
name={ props.Name }
placeholder={ props.Placeholder }
rows={ textareaRows(props.Rows) }
class="ui-textarea"
{ props.Attrs... }
>{ props.Value }</textarea>
}