if(interactive()) {
library(shiny)
library(magrittr)
ui <- fluidPage(
tags$b("Different status"),
spsHr("info"),
spsHr("primary"),
spsHr("success"),
spsHr("warning"),
spsHr("danger"),
tags$b("custom color"),
spsHr(other_color = "purple"),
spsHr(other_color = "pink"),
tags$b("Different width"),
lapply(1:5, function(x) spsHr(width = x)),
tags$b("Different type"),
c("solid", "dotted", "dashed", "double", "groove", "ridge", "inset", "outset") %>%
lapply(function(x) spsHr(type = x, width = 3)),
tags$b("Different opacity"),
lapply(seq(0.2, 1, 0.2), function(x) spsHr(opacity = x))
)
server <- function(input, output, session) {}
shinyApp(ui, server)
}
Run the code above in your browser using DataLab