powered by
Build a shinymaterial button. The initial value is zero, and increases by one on each press.
material_button(input_id, label, icon = NULL, depth = NULL, color = NULL)
String. The input identifier used to access the value.
String. The button text.
String. The name of the icon. Leave empty for no icon. Visit https://materializecss.com/icons.html for a list of available icons.
Integer. The amount of depth of the button. The value should be between 0 and 5. Leave empty for the default depth.
String. The color of the button. Leave empty for the default color. Visit https://materializecss.com/color.html for a list of available colors.
update_material_button
# NOT RUN { material_button( input_id = "example_button", label = "Button", icon = "cloud", depth = 5, color = "blue lighten-2" ) # }
Run the code above in your browser using DataLab