pub fn tooltip_button(
color: Color,
text: &str,
tooltip: &str,
placement: Placement,
) -> Element<Button>Expand description
Create a button with a tooltip.
ยงExample
use ironhtml_bootstrap::tooltip::{tooltip_button, Placement};
use ironhtml_bootstrap::Color;
let btn = tooltip_button(Color::Primary, "Hover me", "Tooltip text", Placement::Top);
assert!(btn.render().contains("data-bs-toggle=\"tooltip\""));