bs_alert: Create a Bootstrap alert

View source: R/bsTools2.R

bs_alertR Documentation

Create a Bootstrap alert

Description

Learn more at https://getbootstrap.com/docs/5.1/components/alerts/.

Usage

bs_alert(x, div_attr = c(class = "alert alert-primary"))

Arguments

x

A string, the HTML or text to display in the alert.

div_attr

A named list or named vector, names are attribute names and values are attribute values. Added to the div containing the alert.

Value

A string of HTML.

Examples

bs_alert(
"Hello"
)

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

Related to bs_alert in bsTools...