bs_container: Create a Bootstrap container div

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

Create a Bootstrap container div.

Usage

1
2
3
4
5
6
7
8
bs_container(
  ...,
  fluid = FALSE,
  breakpoint = NULL,
  padding = NULL,
  overflow_hidden = FALSE,
  custom_class = NULL
)

Arguments

...

A string or strings of HTML content to include in the container div.

fluid

TRUE/FALSE, if TRUE, the class becomes "container-fluid" which sets the width to 100%.

breakpoint

A string, sets the break-point for reshaping content based on screen size. One of "sm", "md", "lg", "xl", "xxl".

padding

An integer, the padding to add, measured in px.

overflow_hidden

TRUE/FALSE, if TRUE, adds "overflow-hidden" to the container class

custom_class

A string, allows custom classes to be appended to the container class

Value

A string of HTML.

Examples

1
2
3
4
bs_container(
div(),
fluid = TRUE
)

bsTools documentation built on Feb. 9, 2021, 5:06 p.m.