Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bs4Ribbon

Create a Boostrap 4 ribbon


Description

Build a bootstrap 4 ribbon

Usage

bs4Ribbon(
  text,
  status = c("primary", "danger", "success", "warning", "info", "secondary"),
  size = NULL
)

Arguments

text

Ribbon text.

status

Ribbon status: "primary", "danger", "success", "warning", "info" and "secondary".

size

NULL by default: "lg" or "xl".

Author(s)

David Granjon, dgranjon@ymail.com

Examples

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) { }
 )
}

bs4Dash

A 'Bootstrap 4' Version of 'shinydashboard'

v0.5.0
GPL (>= 2) | file LICENSE
Authors
David Granjon [aut, cre], RinteRface [cph], Almasaeed Studio [ctb, cph] (AdminLTE3 theme for Bootstrap 4), Winston Chang [ctb, cph] (Utils functions from shinydashboard), Thomas Park [ctb, cph] (Bootswatch Sketchy theme CSS)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.