bs_button: Button

Description Usage Arguments Value See Also Examples

View source: R/button.R

Description

This function makes it a little easier to make Bootstrap-friendly buttons; it wraps htmltools::tags for buttons.

Usage

1
2
3
4
5
6
bs_button(
  label,
  button_type = c("default", "primary", "success", "info", "warning", "danger"),
  button_size = c("default", "large", "small", "extra-small"),
  ...
)

Arguments

label

character (HTML), button label

button_type

character, one of the standard Bootstrap types

button_size

character, size of the button

...

attributes (named arguments) and children (unnamed arguments) of the button, passed to

Value

Object with S3 class, shiny.tag, <button/>.

See Also

http://getbootstrap.com/docs/3.3/css/#buttons

Examples

1
bs_button("Click me", button_type = "primary", button_size = "small")

Example output

<button class="btn btn-primary" button_size="small">Click me</button>

bsplus documentation built on July 2, 2020, 4:15 a.m.