Create a label
dashboardLabel(..., status, style = "default")
any text.
label status. Valid statuses are defined as follows:
primary
: #3c8dbc
success
: #00a65a
info
: #00c0ef
warning
: #f39c12
danger
: #f56954
label border style: "default" (rounded angles), "circle" or "square".
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
dashboardLabel("Label 1", status = "info"),
dashboardLabel("Label 2", status = "danger", style = "circle"),
dashboardLabel("Label 3", status = "success", style = "square")
)
),
server = function(input, output) { }
)
}