Component Detail
Section
Section block with consistent heading spacing.
Example
References
- Template
templates/components/section.html- Golden
testdata/golden/section.golden.html
Go (Marionette) Example
This implementation example uses Marionette in Go. Source: docs/site-astro/public/examples/go/section.go
package goexamples
import (
mb "github.com/YoshihideShirai/marionette/backend"
mf "github.com/YoshihideShirai/marionette/frontend"
)
func RegisterSectionExample(app *mb.App) {
app.Page("/section", func(ctx *mb.Context) mf.Node {
return mf.Section(mf.SectionProps{
Title: "Details",
Description: "Supporting information for the current workflow.",
}, mf.TextComponent(mf.TextProps{Text: "Section body"}))
})
}