// templui component textarea - version: v0.84.0 installed by templui v0.84.0
package textarea
import (
"git.jmbit.de/jmb/scanfile/server/web/templui/utils"
"strconv"
)
type Props struct {
ID string
Class string
Attributes templ.Attributes
Name string
Value string
Placeholder string
Rows int
AutoResize bool
Disabled bool
Required bool
Readonly bool
HasError bool
}
templ Textarea(props ...Props) {
{{ var p Props }}
if len(props) > 0 {
{{ p = props[0] }}
}
if p.ID == "" {
{{ p.ID = utils.RandomID() }}
}
}
templ Script() {
}