コンポーネント詳細
Textarea
Multiline text input control
サンプル
参照情報
- テンプレート
templates/components/textarea.html- ゴールデン
testdata/golden/textarea.golden.html
Go(Marionette)サンプル
この実装例は Go の Marionette を使っています。ソース: docs/site-astro/public/examples/go/textarea.go
package goexamples
import (
mb "github.com/YoshihideShirai/marionette/backend"
mf "github.com/YoshihideShirai/marionette/frontend"
)
func RegisterTextareaExample(app *mb.App) {
app.Page("/textarea", func(ctx *mb.Context) mf.Node {
return mf.Textarea("notes", "Initial onboarding notes", mf.TextareaOptions{
Rows: 4,
Placeholder: "Add notes",
Props: mf.ComponentProps{Size: "sm"},
})
})
}