bs_badge: Create a Bootstrap badge

View source: R/bsTools2.R

bs_badgeR 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"
)

bsTools documentation built on Aug. 30, 2022, 1:08 a.m.

Related to bs_badge in bsTools...