Tooltip
FeedbackA 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
| Name | Type | Description |
|---|---|---|
| content | impl Into<Element> | Element to attach tooltip to |
| tip | impl ToString | Tooltip text content |
| position | Position | Position: Top, Bottom, Left, Right, FollowCursor |
| tokens | &DesignTokens | Design 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