bs_badge {bsTools}R Documentation

Create a Bootstrap badge

Description

Learn more at https://getbootstrap.com/docs/5.1/components/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.

Value

A string of HTML.

Examples

bs_badge(
"Hello"
)

[Package bsTools version 1.0.5 Index]