pub fn modal_button(
target_id: &str,
color: Color,
text: &str,
) -> Element<Button>Expand description
Create a trigger button for a modal.
ยงExample
use ironhtml_bootstrap::modal::modal_button;
use ironhtml_bootstrap::Color;
let btn = modal_button("myModal", Color::Primary, "Launch modal");
assert!(btn.render().contains("data-bs-toggle"));