Description Usage Arguments Author(s) Examples
Build an argon button
1 2 3 4 5 6 7 8 9 10 11 12 |
src |
Button external link. |
name |
Button label. |
status |
Button color. See https://demos.creative-tim.com/argon-design-system/docs/components/buttons.html. |
icon |
Button icon. Expect argonIcon or icon. |
size |
Button size: NULL, "sm" or "lg". |
block |
Whether the button fill its parent. FALSE by default. |
disabled |
Whether to disable the button. FALSE by default. |
outline |
Whether to outline the button. FALSE by default. |
toggle_modal |
Whether to use th button for a modal. FALSE by default. |
modal_id |
If toggle_modal is TRUE, nedd to provide the modal targeted. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 | if(interactive()){
library(argonR)
argonButton(
name = "Click me!",
status = "danger",
icon = argonIcon("atom"),
size = "lg",
toggle_modal = TRUE,
modal_id = "modal1"
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.