Build a Metro badge

metroBadge(..., position = NULL, text_color = NULL, color = NULL)

Arguments

...

Badge text.

position

Badge position: inside, inline or NULL

text_color

Badge text color. Black by default.

color

Badge background color. No background by default.

Examples

if(interactive()){ library(shiny) library(shinyMetroUi) shiny::shinyApp( ui = metroPage( metroGrid( metroRow( xAlign = "center", yAlign = "center", metroCell(metroBadge(4, color = "red")), metroCell(metroBadge(4, color = "yellow")), metroCell(metroBadge(4, color = "green")) ) ) ), server = function(input, output) {} ) }