bs_badge: Create a Bootstrap badge
Usage
bs_badge(x, span_attr = c(class = "badge bg-secondary"))
Arguments
- x
A string, the text to display in the badge (uses the <span> tag).
- span_attr
A named list or named vector, names are attribute names and values are attribute values. Added to the span containing the badge text.