Component Detail

Timeline

Timeline and TimelineItem aliases exposed from frontend package.

Example

References

Template
frontend/daisyui_aliases_impl.go
Golden
N/A

Go (Marionette) Example

This implementation example uses Marionette in Go. Source: docs/site-astro/public/examples/go/timeline.go

package goexamples

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

func RegisterTimelineExample(app *mb.App) {
	app.Page("/timeline", func(ctx *mb.Context) mf.Node {
		return mf.Timeline(mf.TimelineItem("1", "", mf.TextComponent(mf.TextProps{Text: "Import frontend"})), mf.TimelineItem("2", "", mf.TextComponent(mf.TextProps{Text: "Call frontend.Timeline()"})))
	})
}