| ds_alert | R Documentation |
Create an alert message using Designsystemet styles.
ds_alert(
...,
variant = c("info", "warning", "danger", "success"),
class = NULL
)
... |
Alert content |
variant |
Alert variant ("info", "warning", "danger", "success") |
class |
Additional CSS classes |
A Shiny tag object
ds_alert("This is an informational message.", variant = "info")
ds_alert("Warning: Please review before continuing.", variant = "warning")
ds_alert("Error: Something went wrong.", variant = "danger")
ds_alert("Success! Your changes were saved.", variant = "success")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.