accordion | R Documentation |
Collapsible accordion made up of accordionItem()
.
accordion(..., .id = NULL, .flush = FALSE)
... |
Any number of |
.id |
Id of accordion. |
.flush |
remove default background color, some borders, some rounded corners. |
library(shiny)
ui <- fluidPage(
theme = bslib::bs_theme(version = 5L),
accordion(
accordionItem(
.expanded = TRUE,
"Something",
p("Some content")
),
accordionItem(
"Something else",
p("Some other content")
)
)
)
server <- \(input, output, session){
}
if(interactive())
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.