bs_flexbox: Create a Bootstrap flexbox

View source: R/bsTools2.R

bs_flexboxR Documentation

Create a Bootstrap flexbox

Description

Learn more at https://getbootstrap.com/docs/5.1/utilities/flex/.

Usage

bs_flexbox(x, div_attr = c(class = "d-flex justify-content-center"))

Arguments

x

A string, the HTML or text to display in the div.

div_attr

A named list or named vector, names are attribute names and values are attribute values. Added to the div containing x. Defaults to center the content of x.

Value

A string of HTML.

Examples

bs_flexbox(
p("Hello")
)

bsTools documentation built on Aug. 30, 2022, 1:08 a.m.

Related to bs_flexbox in bsTools...