Creates a br-message alert.
Usage
br_message(
title,
body = NULL,
type = c("info", "success", "warning", "danger"),
dismissible = TRUE
)Examples
if (interactive()) {
ui <- shiny::fluidPage(
use_govbr(),
shinyGovBRstyle::br_message(
title = "Sucesso.",
body = "Seus dados foram alterados conforme preenchimento.",
type = "success"
),
shinyGovBRstyle::br_message(
title = "Atenção.",
body = "Não compartilhe sua senha com terceiros.",
type = "warning"
)
)
server <- function(input, output, session) {}
shinyApp(ui = ui, server = server)
}
