gitstack

grindlemire/go-tui code browser

368 B 19 lines 2026-03-14 · 83788af raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
package testdata

import tui "github.com/grindlemire/go-tui"

type myForm struct {
	app *tui.App
}

func MyForm() *myForm {
	return &myForm{}
}

templ (c *myForm) Render() {
	<div class="flex-col gap-1">
		<textarea placeholder="Enter text..." width={50} border={tui.BorderRounded} onSubmit={c.handleSubmit} />
	</div>
}

func (c *myForm) handleSubmit(text string) {}