Learn R Programming

⚠️There's a newer version (1.0.5) of this package.Take me there.

bsTools (version 1.0.2)

Create HTML Content with Bootstrap 5 Classes and Layouts

Description

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 .

Copy Link

Version

Install

install.packages('bsTools')

Monthly Downloads

259

Version

1.0.2

License

GPL (>= 2)

Maintainer

Timothy Conwell

Last Published

July 19th, 2022

Functions in bsTools (1.0.2)

bs_black

Hex code for bootstrap black color
bs_light

Hex code for bootstrap light color
bs_collapse

Create a Bootstrap collapse
bs_col_break

Create a div with class "w-100" to force columns onto a new line
bs_input

Create a HTML input tag configured with Bootstrap classes
bs_indigo

Hex code for bootstrap indigo color
bs_info

Hex code for bootstrap info color
bs_purple

Hex code for bootstrap purple color
bs_red

Hex code for bootstrap red color
bs_danger

Hex code for bootstrap danger color
bs_dark

Hex code for bootstrap dark color
bs_pink

Hex code for bootstrap pink color
bs_primary

Hex code for bootstrap primary color
bs_flexbox

Create a Bootstrap flexbox
bs_figure

Create HTML figure tag configured with Bootstrap classes
bs_select

Create a HTML select tag configured with Bootstrap classes
bs_success

Hex code for bootstrap success color
bs_cyan

Hex code for bootstrap cyan color
bs_nav

Create a Bootstrap nav
bs_container

Create a Bootstrap container div
bs_row

Create a Bootstrap row div
bs_modal

Create a Bootstrap modal
bs_doc

Create a HTML document preconfigured to load Bootstrap5 from the CDN
bs_secondary

Hex code for bootstrap secondary color
css_href_var

Variable for the CSS CDN link
css_integrity_var

Variable for the CSS CDN integrity string
bs_teal

Hex code for bootstrap teal color
bs_spinner

Create a Bootstrap spinner
bs_navbar

Create a Bootstrap navbar
bs_orange

Hex code for bootstrap orange color
bs_offcanvas

Create a Bootstrap offcanvas
bs_dropdown

Create a Bootstrap dropdown
bs_pagination

Create a Bootstrap pagination nav
bs_yellow

Hex code for bootstrap yellow color
bs_white

Hex code for bootstrap white color
bs_toast_js

Create a <script> tag to initialize the Bootstrap javascript for creating toasts. Must include in HTML document if using a toast.
bs_warning

Hex code for bootstrap warning color
bs_green

Hex code for bootstrap green color
bs_table

Create a HTML table configured with Bootstrap classes
sampleStr

Generates (pseudo)random strings of the specified char length
pasteCols

Paste together columns of a list/data frame
bs_img

Create HTML img tag configured with Bootstrap classes
bs_toast_container

Create a Bootstrap toast container
bs_toast

Create a Bootstrap toast
js_src_var

Variable for the JS CDN link
js_integrity_var

Variable for the JS CDN integrity string
bs_textarea

Create a HTML textarea tag configured with Bootstrap classes
bs_alert

Create a Bootstrap alert
bs_col

Create a Bootstrap col div
bs_blue

Hex code for bootstrap blue color
bs_badge

Create a Bootstrap badge
bs_clearfix

Create a div with class "clearfix"
bs_breadcrumb

Create a Bootstrap breadcrumb
bs_card

Create a Bootstrap card
bs_accordion

Create a Bootstrap accordion
bs_carousel

Create a Bootstrap carousel