Build an argon button

argonButton(
  src = NULL,
  name = NULL,
  status = "default",
  icon = NULL,
  size = NULL,
  block = FALSE,
  disabled = FALSE,
  outline = FALSE,
  toggle_modal = FALSE,
  modal_id = NULL
)

Arguments

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.

Author

David Granjon, dgranjon@ymail.com

Examples

if(interactive()){
 library(argonR)
 argonButton(
  name = "Click me!",
  status = "danger",
  icon = argonIcon("atom"),
  size = "lg",
  toggle_modal = TRUE,
  modal_id = "modal1"
 )
}