use iced::Element; use iced::widget::{container, text, tooltip}; pub mod tip { pub use super::tooltip::Position; } pub fn tip<'a, Message: 'a>( target: impl Into>, tip: &'a str, position: tip::Position, ) -> Element<'a, Message> { tooltip( target, container(text(tip).size(14)) .padding(5) .style(container::rounded_box), position, ) .into() }