accordion: Accordion

accordionR Documentation

Accordion

Description

Collapsible accordion made up of accordionItem().

Usage

accordion(..., .id = NULL, .flush = FALSE)

Arguments

...

Any number of accordionItem().

.id

Id of accordion.

.flush

remove default background color, some borders, some rounded corners.

Examples

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)


JohnCoene/bsutils documentation built on June 15, 2024, 3:21 a.m.