Component Detail
P
Paragraph node helper for readable body text blocks.
Example
References
- Template
frontend/ui_impl.go- Golden
N/A
Go (Marionette) Example
This implementation example uses Marionette in Go. Source: 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."})
})
}