| ds_toggle_group | R Documentation |
Create a toggle button group using Designsystemet styles.
ds_toggle_group(inputId, ..., size = NULL, class = NULL)
inputId |
The input slot for Shiny reactivity |
... |
Toggle buttons |
size |
Size variant ("sm", "md", "lg") |
class |
Additional CSS classes |
A Shiny tag object
## Not run:
ds_toggle_group(
"view_mode",
tags$button(class = "ds-button", `data-variant` = "secondary",
`aria-pressed` = "true", value = "list", "List"),
tags$button(class = "ds-button", `data-variant` = "secondary",
`aria-pressed` = "false", value = "grid", "Grid")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.