navset_card_tab() creates a tabbed card, but doesn't include all of the arguments of card(). In particular, you cannot give the card a class without reaching for htmltools::tagAppendAttributes().
library(bslib)
navset_card_tab(
class = "bg-text-primary",
nav_panel("One", "First panel")
)
#> Error in buildTabset(..., ulClass = paste0("nav nav-", type), id = id, : Tabs should all be unnamed arguments, but some are named: class
(Not that .text-bg-primary would look great on a navset_card_tab(), adding the class reveals other styling issues. That said, it should at least be possible.)
navset_card_tab()
creates a tabbed card, but doesn't include all of the arguments ofcard()
. In particular, you cannot give the card a class without reaching forhtmltools::tagAppendAttributes()
.(Not that
.text-bg-primary
would look great on anavset_card_tab()
, adding the class reveals other styling issues. That said, it should at least be possible.)