powered by
Learn more at https://getbootstrap.com/docs/5.1/components/collapse/.
bs_collapse( id, button_label, content, button_attr = c(class = "btn btn-primary"), content_attr = c(class = "collapse") )
A string of HTML.
A string, the id to use for the collapse div.
A string, the text to display in the button controlling the collapsible content.
A string, the HTML to display or collapse.
A named list or named vector, names are attribute names and values are attribute values. Added to the button controlling the collapse.
A named list or named vector, names are attribute names and values are attribute values. Added to the div wrapping the collapsible content.
bs_collapse( id = "collapse1", button_label = "Click to Expand", content = p("Hello") )
Run the code above in your browser using DataLab