Closed DavZim closed 5 days ago
This was recently fixed and will be in the next release of bslib. If you can use the development version of bslib from GitHub or https://rstudio.r-universe.dev, then this works without errors or warnings:
bslib::navset_card_underline(
title = "Tester 2",
bslib::nav_panel("C", "C"),
bslib::nav_panel("D", "D"),
footer = bslib::card_footer("Footer!")
)
Edit: big thanks as always for the awesome reprex! 👏
Lovely, that works as expected. I tried the github dev version, which didnt work (I must have picked the wrong branch or so). But the r-universe version works.
For anyone that tries my code above and stumbles into the same problem: footer = "Footer"
has the wrong format, it should be footer = bslib::card_footer("Footer")
!
Describe the problem
I want to have a footer in a
navset_card_x
. I can do this by either usingfooter = ...
or by usingcard_footer()
directly, but the former is the "correct" option as far as I understand it.When I use
footer = "test"
, no footer is shown, when I usecard_footer("test")
, the footer is shown correctly, but I get a warning.I would expect that the option
footer = "test"
works.MWE
which results in this app, where the left side corresponds to
footer = "test"
(not working) and the right hand side corresponds tocard_footer("test")
, which throws the warning as mentioned above.