コンポーネント詳細
Actions
Horizontal action group container with alignment, gap, and wrapping controls.
サンプル
参照情報
- テンプレート
frontend/ui_impl.go- ゴールデン
N/A
Go(Marionette)サンプル
この実装例は Go の Marionette を使っています。ソース: docs/site-astro/public/examples/go/actions.go
package goexamples
import (
mb "github.com/YoshihideShirai/marionette/backend"
mf "github.com/YoshihideShirai/marionette/frontend"
)
func RegisterActionsExample(app *mb.App) {
app.Page("/actions", func(ctx *mb.Context) mf.Node {
return mf.Actions(mf.ActionsProps{Gap: "sm", Align: "between", Wrap: true},
mf.Button("Back", mf.ComponentProps{Variant: "ghost"}),
mf.Button("Save", mf.ComponentProps{Variant: "primary"}),
)
})
}