Consider this simple Shiny app with two pages and a switch button:
ui <- tagList(
bslib::page_fluid(
bslib::navset_tab(
bslib::nav_panel("Foo"),
bslib::nav_panel("Bar"),
bslib::input_switch("blah", "Blah"),
)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
Is there a way to align the button with the tab names without tweaking the CSS?
I'd like to have something that visually looks more or less like the following:
ui <- tagList(
bslib::page_fluid(
bslib::navset_tab(
bslib::nav_panel("Foo"),
bslib::nav_panel("Bar"),
bslib::nav_panel(bslib::input_switch("blah", "Blah")),
)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)