bs4Ribbon {bs4Dash} | R Documentation |
Boostrap 4 ribbon
Description
bs4Ribbon build a bootstrap 4 ribbon
Usage
bs4Ribbon(text, color)
ribbon(text, color)
Arguments
text |
Ribbon text. |
color |
Ribbon color. Valid colors are defined as follows:
|
Author(s)
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(
fluidRow(
box(
width = 4,
title = "Blue ribbon",
bs4Ribbon(
text = "New",
color = "primary"
)
),
box(
width = 4,
title = "Purple ribbon",
bs4Ribbon(
text = "New",
color = "indigo"
)
),
box(
width = 4,
title = "Orange ribbon",
bs4Ribbon(
text = "New",
color = "orange"
)
)
)
),
footer = dashboardFooter()
),
server = function(input, output) { }
)
}
[Package bs4Dash version 2.3.3 Index]