lotusui
A Go design system for desktop and mobile — one codebase, native apps. Web when you want it.
GitHub

Tooltip

The hover label: inverted chrome, a rest delay, pass-through events.

Wrap any widget; hold the pointer for a beat and the label floats in beneath it on the portal layer. The hover area passes events through — the child keeps its own interactions. One Tooltip struct per wrapped instance.

Installation

Use the module import (the default), or own the source: lotusui add vendors the component into your app and lotusui update keeps the copy mergeable — see Registry.

Go
go get github.com/ikaito-com/lotusui

# or vendor the source into your app:
go run github.com/ikaito-com/lotusui/cmd/lotusui add tooltip

Usage

open demo ↗

Sides

Side floats the label above, below, or beside the child.

open demo ↗

API

OptionTypeDescription
Layout(th, gtx, text, child)methodWrap any widget; label floats in after a rest delay.

lotusui is a Go design system for native desktop and mobile — and the web when you want it. Docs demos are the real components (WebAssembly) — one gallery app, each Preview an iframe addressed by URL hash.