Description Usage Arguments Author(s) Examples
Build a bootstrap 4 ribbon
1 2 3 4 5  | 
text | 
 Ribbon text.  | 
status | 
 Ribbon status: "primary", "danger", "success", "warning", "info" and "secondary".  | 
size | 
 NULL by default: "lg" or "xl".  | 
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42  | if (interactive()) {
 library(shiny)
 library(bs4Dash)
 shinyApp(
  ui = bs4DashPage(
    navbar = bs4DashNavbar(), 
    sidebar = bs4DashSidebar(),
    body = bs4DashBody(
     fluidRow(
      bs4Box(
       width = 4,
       title = "Normal ribbon",
       bs4Ribbon(
        text = "New",
        status = "primary"
       )
      ),
      bs4Box(
       width = 4,
       title = "Large ribbon",
       bs4Ribbon(
        text = "New",
        status = "secondary",
        size = "lg"
       )
      ),
      bs4Box(
       width = 4,
       title = "XLarge ribbon",
       bs4Ribbon(
        text = "New",
        status = "danger",
        size = "xl"
       )
      )
     )
    ), 
    footer = bs4DashFooter()
  ),
  server = function(input, output) { }
 )
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.