Sigil

Tooltip

A hover tooltip.

GUITUIRuns in the browsertooltip

Preview

Tooltip, Hover, light themeTooltip, Hover, dark theme

Usage example

fn tooltip_demo() -> NodeBuilder {    container()        .layout(LayoutStyle::flex_column().fill_width().padding_top(40.0))        .child(            tooltip("Saves the document")                .delay(0)                .child(button("Hover me").ghost()),        )}
fn tooltip_demo() -> NodeBuilder {  container()    .layout(      LayoutStyle::flex_column()        .fill_width()        .padding_top(40.0),    )    .child(      tooltip("Saves the document")        .delay(0)        .child(          button("Hover me").ghost(),        ),    )}

States

All 2 captured states, each drawn by the window host and by the terminal host.

  • Tooltip, Default, light themeTooltip, Default, dark theme
    Default
  • Tooltip, Hover, light themeTooltip, Hover, dark theme
    Hover

API

NameSignaturePurpose
tooltipfn tooltip(label: impl Into<String>) -> TooltipBuilderA hover tooltip.