bsTools makes it easy to produce valid HTML5 strings styled with Bootstrap 5 elements.
Functions are pre-configured to utilize Bootstrap 5 classes and HTML structures to create Bootstrap-styled HTML quickly and easily. Includes functions for creating common Bootstrap elements such as containers, rows, cols, navbars, etc. Intended to be used with the html5 package. Learn more at https://getbootstrap.com/.
You can install the package bsTools from CRAN with:
install.packages("bsTools")You can install the development version of bsTools from GitHub with:
# install.packages("devtools")
devtools::install_github("tconwell/bsTools")library(bsTools)
bs_doc(
body = bs_container(
bs_row(
bs_col(
h2("Col 1")
),
bs_col(
h2("Col 2")
),
bs_col(
h2("Col 3")
)
)
)
)library(bsTools)
bs_accordion(
id = "acc1",
items = list(
"One" = p("Check it out."),
"Two" = p("Does it work?"),
"Three" = p("I hope so.")
)
)