btn

Function btn 

Source
pub fn btn(color: Color, text: &str) -> Element<Button>
Expand description

Create a Bootstrap button.

Generates:

<button type="button" class="btn btn-{color}">{text}</button>

ยงExample

use ironhtml_bootstrap::{buttons::btn, Color};

let button = btn(Color::Primary, "Click me");
assert_eq!(
    button.render(),
    r#"<button type="button" class="btn btn-primary">Click me</button>"#
);