Component Detail

TooltipWithVariants

Tooltip helper with placement, color, and forced-open variants.

Example

References

Template
frontend/daisyui/components_extra.go
Golden
N/A

Go (Marionette) Example

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

package goexamples

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

func RegisterTooltipWithVariantsExample(app *mb.App) {
	app.Page("/tooltip-with-variants", func(ctx *mb.Context) mf.Node {
		return mf.TooltipWithVariants("Saved", mf.Button("Hover", mf.ComponentProps{}), "right", "success", false)
	})
}