Skip to contents

Create a message item.

Usage

message_item(from, message, ..., icon = "user")

messageItem(from, message, ..., icon = "user")

Arguments

from

Who the message is from.

message

Text of the message.

...

Additional UI elements to include within the dropdown menu.

icon

Additional icon.

Value

A message item that can be passed to dropdownMenu

Functions

  • messageItem(): Create a message item (alias for message_item for compatibility with shinydashboard)

Examples

messageItem("Marek", "Another test!", icon = "warning")
#> <a class="item">
#>   <span class="description">Another test!</span>
#>   <span class="text">
#>     <i class="warning icon"></i>
#>     Marek
#>   </span>
#> </a>