Learn R Programming

bsTools (version 1.0.5)

bs_badge: 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"))

Value

A string of HTML.

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.

Examples

Run this code
bs_badge(
"Hello"
)

Run the code above in your browser using DataLab