rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
475 stars 57 forks source link

Collapse components #463

Open nick-youngblut opened 1 year ago

nick-youngblut commented 1 year ago

shinyBS::bsCollapsePanel is not supported by bslib::bs_theme(version = 5). If one uses bslib::bs_theme(version = 5), then the shinyBS panels are just shown as web links (broken links) instead of collapsible panels.

I'm using bslib 0.4.1 and shinyBS 0.61.1

denisabd commented 1 year ago

Hi Nick, as far as I know shinyBS works with Bootstrap 3 only. As an alternative one can use panels from shinyWidgets library https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html. For tooltips I personally like prompter package https://github.com/etiennebacher/prompter. Both will work with Bootstrap 5.

nick-youngblut commented 1 year ago

Thanks @Denis-Abdullin for the info and suggestions!

cpsievert commented 1 year ago

@Denis-Abdullin is spot on, but I'm gonna change the title here to reflect the fact that we may want to have some collapse wrappers in {bslib}.

That said, it seems like the new bslib::accordion() (#475) could be considered a modern equivalent to shinyBS::bsCollapse()?