| ds_button | R Documentation |
Create a styled button using Designsystemet styles. ds_action_button() is
a drop-in replacement for shiny::actionButton() with the same
(inputId, label, ...) argument order.
ds_button(
label,
inputId = NULL,
variant = c("primary", "secondary", "tertiary"),
size = NULL,
icon = FALSE,
loading = FALSE,
disabled = FALSE,
fullwidth = FALSE,
type = "button",
...
)
ds_action_button(inputId, label, ...)
label |
The button label. |
inputId |
Input ID (first argument, matching |
variant |
Button variant: |
size |
Size variant: |
icon |
If |
loading |
If |
disabled |
If |
fullwidth |
If |
type |
Button type: |
... |
Additional attributes. |
A Shiny tag object.
ds_button("Click me", inputId = "btn")
ds_button("Submit", variant = "primary", type = "submit")
ds_button("Cancel", variant = "secondary")
ds_action_button("btn", "Click me")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.