vignettes/snippets/valuebox.md

Row

Articles per Day

articles <- computeArticles()
valueBox(articles, icon = "fa-pencil")

Comments per Day

comments <- computeComments()
valueBox(comments, icon = "fa-comments")

Spam per Day

spam <- computeSpam()
valueBox(spam, 
         icon = "fa-trash",
         color = ifelse(spam > 10, "warning", "primary"))


rstudio/flexdashboard documentation built on Oct. 18, 2023, 11:02 a.m.