Tooltip

Feedback

A popover-styled tooltip that appears on hover with configurable position.

Preview

This is a tooltip

Usage

tooltip.rs
use floe_ui::components::tooltip;
use iced::widget::tooltip::Position;

let widget = tooltip::styled(
    button::primary("Hover me", &tokens),
    "This is a tooltip",
    Position::Top,
    &tokens,
);

API Reference

Props / Parameters

NameTypeDescription
contentimpl Into<Element>Element to attach tooltip to
tipimpl ToStringTooltip text content
positionPositionPosition: Top, Bottom, Left, Right, FollowCursor
tokens&DesignTokensDesign tokens for theming

Style Functions

default_style(tokens)

Style functions return closures compatible with Iced's .style() method.

Builder Functions

styled(content, tip, position, tokens)

Builder functions return pre-configured Iced widgets ready for use.

Source: floe-ui/src/components/tooltip.rs