bs_doc {bsTools}R Documentation

Create a HTML document preconfigured to load Bootstrap5 from the CDN

Description

Learn more at https://getbootstrap.com/docs/5.1/getting-started/introduction/.

Usage

bs_doc(
  head = NULL,
  body,
  body_attr = NULL,
  css_href = css_href_var,
  css_integrity = css_integrity_var,
  js_src = js_src_var,
  js_integrity = js_integrity_var
)

Arguments

head

A string of HTML that will be passed to the ... param of the html5::head() function.

body

A string of HTML that will be passed to the ... param of the html5::body() function.

body_attr

A named list or named vector, passed to the attr param of the html5::body() function.

css_href

The url of jsDelivr for the version of bootstrap css to include.

css_integrity

The integrity string for the version of bootstrap css to include.

js_src

The url of jsDelivr for the version of bootstrap js bundle to include.

js_integrity

The integrity string for the version of bootstrap js bundle to include.

Value

A string of HTML.

Examples

bs_doc(
body = div(h1("Hello"), p("Welcome to this page."))
)

[Package bsTools version 1.0.5 Index]