badge_pill

Function badge_pill 

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

Create a pill badge (rounded).

ยงExample

use ironhtml_bootstrap::{badge::badge_pill, Color};

let b = badge_pill(Color::Danger, "99+");
assert!(b.render().contains("rounded-pill"));