I am using a bootstrap theme for my application in shiny.
This theme provides some button styles, which are associated with a certain class. For example:
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-link">Link</button>
However, when I create a new button with:
shiny::actionButton(ns("btn_wuser"),
class = "btn btn-link",
label = "Button")
I am unable to indicate which class the button should be linked to. I've tried also:
shiny::actionButton(ns("btn_wuser"),
style = "class: 'btn btn-link;'")
Minimal reproducible example:
library(shiny)
library(bslib)
ui <- navbarPage(
theme = bslib::bs_theme_update(bslib::bs_theme(),
base_font = bslib::font_google("Montserrat"),
code_font = bslib::font_google("Montserrat"),
bootswatch = "lumen",
bg = "#ecf0f5",
fg = "#000000"),
collapsible = TRUE,
shiny::actionButton("btn_wuser",
class = "btn btn-link",
label = "Button"
)
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
Could someone help me?