ds_alert: Alert Component

View source: R/ds-alert.R

ds_alertR Documentation

Alert Component

Description

Create an alert message using Designsystemet styles.

Usage

ds_alert(
  ...,
  variant = c("info", "warning", "danger", "success"),
  class = NULL
)

Arguments

...

Alert content

variant

Alert variant ("info", "warning", "danger", "success")

class

Additional CSS classes

Value

A Shiny tag object

Examples

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")

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.