Description Usage Arguments See Also Examples
Use an alert element to let the user know of successes or to call attention to problems.
1 |
... |
Character strings specifying the text of the alert or additional named arguments passed as HTML attributes to the alert element. |
dismissible |
One of |
fade |
One of |
Other components:
badge()
,
blockquote()
,
card()
,
collapsePane()
,
d1()
,
dropdown()
,
img()
,
jumbotron()
,
modal()
,
navContent()
,
popover()
,
pre()
,
toast()
1 2 3 4 5 6 7 8 9 10 11 12 13 | ### Default alert
alert("Donec at pede.") %>%
background("blue")
### A more complex alert
alert(
h4("Etiam vel tortor sodales"),
hr(),
p("Fusce commodo.")
) %>%
background("amber")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.