Use this tag for questions about bslib, an R package which provides tools for customizing Bootstrap themes directly from R.
Questions tagged [bslib]
53 questions
0
votes
1 answer
Why does a Bootstrap 5 collapse not work in shiny::bootstrapPage?
Here is a working Bootstrap 5 page, made with a div and the BS5 dependencies via a CDN. Click on the button and some text appears. The example is directly from Bootstrap 5.0
library(shiny)
library(bslib)
# Does not work
#ui <- bootstrapPage(theme =…

Remko Duursma
- 2,741
- 17
- 24
0
votes
1 answer
Dropdown functionality of shinyWidgets::pickerInput inside bslib::page_navbar does not work
I have a small reprex of this issue:
# R v4.2.3
# RStudio Pro v2023.06.0
library(shiny) # v1.7.2
library(bslib) # v0.5.0
library(shinyWidgets) # v0.7.6
page_navbar(
header = pickerInput('pickId', choices = month.abb),
title = 'reprex',
…

michael
- 153
- 1
- 11
0
votes
2 answers
Creating tooltip for radioGroupButtons while using bslib
I want to get a tooltip for a shinywidgets::radiogroupButton (or shiny::radioButton) that warns the user about the consecuences of choosing each option, sepparately. I want to achieve the exact same output mentioned in this answer. The problem is…

Carlos J. Daboin
- 3
- 1
0
votes
1 answer
bslib rotating icon dependent on open state of panel
I have the following app that rotates a triangle icon upon opening/closing the bsCollapsePanel. However, it requires clicking on the title first from a closed state. It does not recognise the already open state upon initial loading. You have to…

Graham
- 176
- 8
0
votes
1 answer
Can I used bslib cards in my Shiny app without using a bootswatch theme?
My question is hopefully pretty simple. I would like to use cards from bslib (see here: https://rstudio.github.io/bslib/articles/cards.html) but I do not use a bootswatch theme. I use custom css for my theme.
I want to still use the cards, but I…
0
votes
0 answers
modalDialog opening behind when a card is expanded (full_screen=TRUE)
I have a link to open a dialog box (showModal(modalDialog()...) within a card working fine, however, when I expand the card and click on the same link, the dialog box appears behind the card expanded screen. Is there a way to show the dialog in…

Scopinho
- 16
- 2
0
votes
1 answer
Shiny Module for bslib::card -- where can I specify the id?
I would like to build a shiny module whose UI part is a card from bslib. Like
my_mod_ui <- function(id) {
ns <- shiny::NS(id)
bslib::card(
full_screen = TRUE,
bslib::card_header("My Title"),
bslib::layout_sidebar(
…

Karsten W.
- 17,826
- 11
- 69
- 103
0
votes
1 answer
How can I make a shiny `selectInput()` overflow a `bslib::navset_card_pill()`?
The issue:
My problem is that my selectInput() is cut off by the lower border of the card:
library(shiny) # Version 1.7.4
library(bslib) # Version 0.5.0
ui <- page_fluid(
navset_card_pill(nav_panel(
title = "No overflow :(",
…

wurli
- 2,314
- 10
- 17
0
votes
1 answer
How to make icons and text bigger in bslib::value_box?
I would like to at least double the size of the icons and text in the following bslib::value_box()s:
here is my code so far
library(shiny)
library(bslib)
ui = page_fluid(
titlePanel("Test App"),
fluidRow(
…

ifoxfoot
- 195
- 7
0
votes
0 answers
How to fix sass error when trying to knit R Markdown files?
I am struggling to get R Markdown to work in terms of knitting files. The error I am getting seems to be related to sass. However, even after installing the package associated with sass, it's still throwing error messages.
Has anyone had this issue…

Katie
- 1
- 1
0
votes
1 answer
How can I extract the font from the 'lux' theme in bootswatch and use it in my R Shiny app using bslib?
How do I extract a font from a bootswatch theme and use it in a R Shiny app?
I'm using the bslib library and trying to extract the font from the "lux" theme so I can use it with another theme.
I'm assuming it goes somewhere in the bs_add_variables…

rtb
- 1
- 1
0
votes
2 answers
Display reactive values in bslib value_box without destryoing formatting
The value boxes in bslib are attractive and fulfill a need when dashboarding. However, there doesn't seem to be a straightforward way to populate them with reactive (non-static) values without breaking the formatting and therefore reducing the power…

Pegasaurus
- 145
- 12
0
votes
1 answer
Is it possible to style shinyWidgets radio buttons with CSS while using bs_theme?
I'd like to style particular radio buttons while using bslib themes, but they are unaffected by my rules. Why is this?
For example,
library(shiny)
library(bslib)
library(shinyWidgets)
theme = bs_theme(version = 5, bootswatch = "minty")
ui =…

matt
- 318
- 3
- 11
0
votes
1 answer
Adding two dataTables in bslib/shiny tabpanel in Flexdashboard
I am trying to add two datatables to either a Shiny tabsetPanel or a bslib navs_tab_card within a flexdashboard 'card', but I have found that while the first table renders correctly, the second does not appear.
After inspecting the output, I see…

Alan Farahani
- 25
- 4
0
votes
1 answer
Change color of selected row in data table with bslib theme in Shiny app
I would like to change the color of the selected row from blue to something else. This is possible without using the bslib package and themes, but I would like to use the theme, and still be able to change the color.
This…

ashcrashbegash
- 157
- 11