Build an argon alert

argonAlert(..., icon = NULL, status = "default", closable = TRUE)

Arguments

...

Alert content.

icon

Alert icon. Expect argonIcon or icon.

status

Alert status. See https://demos.creative-tim.com/argon-design-system/docs/components/alerts.html.

closable

Whether to make the alert closable or not. TRUE by default.

Author

David Granjon, dgranjon@ymail.com

Examples

if (interactive()) {
 library(argonR)
 argonAlert(
  icon = argonIcon("basket"),
  status = "danger",
  "This is an alert",
  closable = TRUE
 )
}