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

bs_panel

Panel


Description

This function makes it a little easier to make Bootstrap-friendly panels; it wraps htmltools::tags for panels

Usage

bs_panel(
  id = NULL,
  panel_type = c("default", "primary", "success", "info", "warning", "danger"),
  heading = NULL,
  body = NULL,
  ...,
  footer = NULL
)

Arguments

id

character, unique identifier

panel_type

character, one of the standard Bootstrap types

heading

character (HTML) or htmltools::tagList(), content for the heading

body

character (HTML) or htmltools::tagList(), content for the body

...

character (HTML) or htmltools::tagList(), other content

footer

character (HTML) or htmltools::tagList(), content for the footer

Value

Object with S3 class, shiny.tag, <div/>

See Also

Examples

library("htmltools")

bs_panel(
  panel_type = "primary",
  heading = tags$h3("title"),
  body = tags$p("Some very important content")
)

bsplus

Adds Functionality to the R Markdown + Shiny Bootstrap Framework

v0.1.2
MIT + file LICENSE
Authors
Ian Lyttle [aut, cre, cph] (<https://orcid.org/0000-0001-9962-4849>), Schneider Electric [cph], Alex Shum [ctb], Emily Bosak [ctb]
Initial release

We don't support your browser anymore

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