コンポーネント詳細

P

Paragraph node helper for readable body text blocks.

サンプル

参照情報

テンプレート
frontend/ui_impl.go
ゴールデン
N/A

Go(Marionette)サンプル

この実装例は Go の Marionette を使っています。ソース: docs/site-astro/public/examples/go/paragraph.go

package goexamples

import (
	mb "github.com/YoshihideShirai/marionette/backend"
	mf "github.com/YoshihideShirai/marionette/frontend"
)

func RegisterParagraphExample(app *mb.App) {
	app.Page("/paragraph", func(ctx *mb.Context) mf.Node {
		return mf.TextComponent(mf.TextProps{Text: "Paragraph helper for readable long-form text."})
	})
}