Learn R Programming

bsplus (version 0.1.1)

bs_button: Button

Description

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

Usage

bs_button(label, button_type = c("default", "primary", "success", "info",
  "warning", "danger"), ...)

Arguments

label

character (HTML), button label

button_type

character, one of the standard Bootstrap types

...

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

Value

htmltools::tag, <button/>

See Also

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

Examples

Run this code
# NOT RUN {
bs_button("Click me", button_type = "primary")
# }

Run the code above in your browser using DataLab