f7Badge | R Documentation |
Container to highlight important information with color.
f7Badge(..., color = NULL)
... |
Badge content. Avoid long text. |
color |
Badge color: see here for valid colors https://framework7.io/docs/badge.html. |
David Granjon, dgranjon@ymail.com
if(interactive()){ library(shiny) library(shinyMobile) colors <- getF7Colors() shinyApp( ui = f7Page( title = "Badges", f7SingleLayout( navbar = f7Navbar(title = "f7Badge"), f7Block( strong = TRUE, lapply(seq_along(colors), function(i) { f7Badge(colors[[i]], color = colors[[i]]) }) ) ) ), server = function(input, output) {} ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.