Description Usage Arguments Examples
Build a shinymaterial button. The initial value is zero, and increases by one on each press.
1 2 3 |
input_id |
String. The input identifier used to access the value. |
label |
String. The button text. |
icon |
String. The name of the icon. Leave empty for no icon. Visit http://materializecss.com/icons.html for a list of available icons. |
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 of the button. Leave empty for the default color. Visit http://materializecss.com/color.html for a list of available colors. |
pulse |
Whether to enable pulse effect on the button. FALSE by default. |
floating |
Whether to display a round button or not. FALSE by default: Works well with pulse. |
size |
Button size. "medium" by default: "small" and "large" available. |
disabled |
Whether to disable the button. FALSE by default. |
1 2 3 4 5 6 7 | material_button(
input_id = "example_button",
label = "Button",
icon = "cloud",
depth = 5,
color = "blue lighten-2"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.