// templui component textarea - version: main installed by templui v0.71.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 } templ Textarea(props ...Props) { @Script() {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} } if p.ID == "" { {{ p.ID = utils.RandomID() }} } } var handle = templ.NewOnceHandle() templ Script() { @handle.Once() { } }