material_button: Create a materialize button

Description Usage Arguments Examples

Description

Build a materialize button. The initial value is zero, and increases by one on each press.

Usage

1
2
material_button(inputId, label = NULL, icon = NULL, class = NULL,
  depth = NULL, color = NULL)

Arguments

inputId

String. The input identifier used to access the value.

label

String. The button text.

icon

String or shiny.tag The name of the icon or a material_icon element. Leave empty for no icon. Visit http://materializecss.com/icons.html for a list of available icons.

class

String. Aditional class for button. Value should be 'btn-round', 'btn-large' or 'btn-small'.

depth

Integer. The amount of depth of the button. The value should be between 0 and 5. Leave empty for the default depth.

color

String. The color name of the button. Leave empty for 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

Examples

1
2
3
4
5
6
7
8
require(materializer)
material_button(
  inputId = "example_button",
  label = "Button",
  icon = "cloud",
  depth = 5,
  color = "blue lighten-2"
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.