bs_badge | R Documentation |
Learn more at https://getbootstrap.com/docs/5.1/components/badge/.
bs_badge(x, span_attr = c(class = "badge bg-secondary"))
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. |
A string of HTML.
bs_badge( "Hello" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.