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
1
vote
2 answers
How to use bslib/sass to change label layout in R shiny
In the following R shiny program I use 2 labels "Enter text:" and "Enter choice:".
library(shiny)
library(bslib)
ui <- fluidPage(
theme = bs_theme(version = 5,
bootswatch = "litera",
base_font = "Arial",…

Gerben
- 61
- 3
1
vote
2 answers
How to use layout_column_wrap() inside a quarto document
I'd like to make use of bslib::layout_column_wrap() inside a Quarto doc, but columns do not wrap as expected .
For example, this:
---
title: "test"
---
```{r}
bslib::layout_column_wrap(
width = 1/2,
bslib::value_box(1, 1),
…

Giovanni Colitti
- 1,982
- 11
- 24
1
vote
1 answer
How to control padding for value boxes created with bslib
I thought I could set a class for the value box to remove padding like this:
bslib::value_box("test", "test", class = "p-0")
Or in a minimal Shiny app:
library(shiny)
ui <- fluidPage(
theme = bslib::bs_theme(version = 5),
…

Giovanni Colitti
- 1,982
- 11
- 24
1
vote
1 answer
nav-link-color (and other) not working in bslib
I am trying to customise the ui in Shiny with bslib and I was under the impression that bslib allows changing all the sass variables as described here https://rstudio.github.io/bslib/articles/bs5-variables.html#nav-link-color by specifying it…

wit
- 63
- 7
1
vote
1 answer
How to use bslib package pop up window inside a table rendered with rhandsontable in R Shiny?
In the code at the bottom I am trying to follow the template used in R Shiny - Popup window when hovering over icon, the Laurent answer, and am trying to pull it into a rhandsontable table. I simply want to render the popup window as shown in the…

Village.Idyot
- 1,359
- 2
- 8
1
vote
0 answers
Real Time bslib theme is not working when running shiny app
I'm trying to embed a real-time bslib theme into my shiny app. It was working previously, and when I try it on a new plain shiny app it works, but for some reasons, I keep receiving the same error when I run my shiny app:
Error : bslib::bs_themer()…

Sami Khamash
- 11
- 2
1
vote
0 answers
Error when knitting a 'flexdashboard' themed with 'bslib'
I tried a 'flexdashboard' themed with 'bslib' (in RStudio: New file -> Rmarkdown -> From template -> flexdashboard themed with bslib). I'm on Windows. When I knit the file (e.g. the default one), the compilation reaches 100% but then an error…

Stéphane Laurent
- 75,186
- 15
- 119
- 225
1
vote
1 answer
How change font size of shinyWidgets::autonumericInput()
Using tags$style I can alter the appearance of the text in a numericInput field, including the font-size.
Using tags$style I can alter some aspects of the appearance of the text in a shinyWidgets::autonumericInput field. The color and style change,…

ixodid
- 2,180
- 1
- 19
- 46
1
vote
1 answer
Set R shiny modal width when theme is defined by bslib
How can I set the modal width to 80% when bs_theme() is active? Is there a possibility within bs_theme()? I just can't get it right with the tags.
library(shiny)
library(bslib)
ui <- fluidPage(
shiny::bootstrapLib(),
theme = bs_theme(
…

MaVe
- 169
- 2
- 8
1
vote
1 answer
Change color using bslib package in Shiny
Could you help me change my theme using bslib package from RStudio?
I would like the top bar to be light green. Also, if possible, the created button (reset) had a blue background.
It is possible?
Executable code…

Antonio
- 1,091
- 7
- 24
0
votes
2 answers
Is it possible to reduce space around shinyWidgets radioGroupButtons and shiny fileInput?
Is it possible to adjust space around specific instances of radioGroupButtons and fileInput?
For example, how could the fileInput1 and radioGroupButtons1 be made stacked and immediately adjacent to each…

matt
- 318
- 3
- 11
0
votes
1 answer
How to extend an accordion element past the sidebar instead of scrolling?
I want my accordion to overflow into the body instead of making my sidebar scroll. I want the same behavior I am getting from my virutal select inputs. I have tried changing the class but I have no clue what I am…

kmlewis15
- 25
- 3
0
votes
0 answers
change font_family for bookdown::gitbook()
I am currently trying to change the font family for a gitbook I am trying to render. Below is the YAML metadata:
---
bookdown::gitbook:
theme:
bslib: true
version: 4
base_font:
google: "Roboto"
heading_font:
google:…

Vijay Ramesh
- 191
- 1
- 2
- 20
0
votes
1 answer
Value cards not displaying in boxes on Shiny app?
I am creating a shiny app with this layout:
There are meant to be 4 cards on the top row, and then two plotly graphs underneath. I would like the cards to appear in boxes like this:
But why is it only showing the text? I am using the bslib…

Dieu94
- 371
- 1
- 11
0
votes
1 answer
Why is the shinyBS tooltip not showing up while using bslib?
The shinyBS tooltips stop working when I start using bslib functions. How can I fix that?
Examples below:
This code from shinyBS works perfectly:
library(shiny)
library(shinyBS)
shinyApp(
ui =
fluidPage(
sidebarLayout(
sidebarPanel(
…

Carlos J. Daboin
- 3
- 1