Skip to contents

Create a notification item.

Usage

notification_item(text, icon = "warning", color = "")

notificationItem(text, icon = "warning", color = "")

Arguments

text

Text of the notification.

icon

Additional icon.

color

Color of the notification item. One of c("", "red", "orange", "yellow", "olive", "green", "teal", "blue", "violet", "purple", "pink", "brown", "grey", "black")

Value

A notification item that can be passed to dropdownMenu

Functions

  • notificationItem(): Create a notification item (alias for notification_item for compatibility with shinydashboard)

Examples

notificationItem("This is notification!", color = "red")
#> <div class="item">
#>   <div class="ui label red">
#>     <i class="small warning icon"></i>
#>     This is notification!
#>   </div>
#> </div>