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
How can I override the text size of title and tabs while using a bslib theme?
I'm currently using the bslib package to show pretty value boxes inside a modal dialog. However, I want to change the size/font of the current titles and tabs in the modal dialog box. How can I do this while preserving the bslib bootstrap theming…

Lee1010
- 99
- 5
0
votes
1 answer
How to evaluate a list of cards in bslib::layout_column_wrap?
I am trying to display a list of cards in a 2d grid using the function bslib::layout_column_wrap(). However, I get a 1d grid with the cards positioned in one column instead of multiple columns. See a minimal reproducible example…

Gion Mors
- 313
- 1
- 3
- 20
0
votes
1 answer
Bslib change only navbar color
In my shiny app, I have an option allowing to change the theme app.
Is there a way to create a theme where only the navbar is colored and the body is black or white ?
I know it's possible to do it with CSS but as I could change the theme in the app…

nimliug
- 349
- 1
- 11
0
votes
1 answer
navbarPage Column layout issue when using bslib::bs_theme(version = 4) or 5
I am having trouble getting boxes to align in fluidRow column format when using bslib and theme bootstrap 4 and 5 with navbarPage. It works with version 3. I can't figure out how to make the version 5 (or 4) to return the right layout. Only one…

ashcrashbegash
- 157
- 11
0
votes
1 answer
How to use grid-column CSS property with bslib::layout_column_wrap() inside quarto doc
If I have two value boxes setup like this:
```{r}
bslib::layout_column_wrap(
width = NULL,
fill = FALSE,
class = "d-grid",
style = htmltools::css(grid_template_columns = "repeat(auto-fill, minmax(200px, 1fr))"),
bslib::value_box("Value…

Giovanni Colitti
- 1,982
- 11
- 24
0
votes
1 answer
css reference when using bsilb package in ShinyApp
I want to hide a tabsetPanel in a ShinyApp. Following this answer in a Shiny issue I can do that just fine like this:
library(shiny)
ui <- fluidPage(
tags$style("#inTabset { display:none; }"), #This works
sidebarLayout(
sidebarPanel(
…

David Jorquera
- 2,046
- 12
- 35
0
votes
1 answer
Why do the colors of the Slate Bootswatch 4 theme appear wrong?
Why do the colors of the "Slate" theme appear wrong?
---
title: "test"
output:
html_document:
self_contained: false
theme:
version: 4
bootswatch: slate
toc: yes
toc_depth: 3
toc_float:
collapsed:…

gd047
- 29,749
- 18
- 107
- 146
0
votes
1 answer
shiny conditionalPanel() JS condition not working with bslib
Using shiny 1.6.0 and bslib 0.3.0.
This work as expected:
library(shiny)
ui <- navbarPage(
title = "Minimal Example Issue",
id = "tabs",
header = conditionalPanel(
condition = "input.tabs == 'tab_1'",
…

tic-toc-choc
- 815
- 11
- 26