How to use bslib theme with shinywidgets actionBttn

31 Views Asked by At

I am using a theme with custom colors for primary, secondary, etc. but when I set the color option to primary, the actionBttn() does not recognize my theme color. How do I change the actionBttn color to match my theme?

library(shiny)
library(bslib)
library(shinyWidgets)

ui <- page_sidebar(
  title = "My dashboard",
  theme = bs_theme(primary = "purple"),
  sidebar = sidebar("Sidebar",
  actionBttn("go", "Go", color = "primary")),
  "Main"
)

shinyApp(ui, function(input, output) {})
0

There are 0 best solutions below