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(
selectInput("species_richness",
"Select number of species",
choices = c(1:5)),
selectInput("mean_c",
"Select mean C",
choices = c(1:5)),
selectInput("fqi",
"Select FQI",
choices = c(1:5))
),
#boxes with key values
layout_column_wrap(
width = 1/3,
bslib::value_box(
title = "Species Richness",
value = htmlOutput("species_richness"),
showcase = icon("seedling")
),
bslib::value_box(
title = "Mean C",
value = htmlOutput("mean_c"),
showcase = icon("pagelines")
),
bslib::value_box(
title = "Total FQI",
value = htmlOutput("fqi"),
showcase = icon("spa")
)
)
)
server = function(session, input, output) {
output$species_richness <- renderUI({
input$species_richness
})
output$mean_c <- renderUI({
input$mean_c
})
output$fqi <- renderUI({
input$fqi
})
}
shinyApp(ui, server)
How can I make the icons and text 2-3x bigger? In my real code, the values are calculated server-side so the solution has to work with htmlOutput()
. I am open to CSS or bslib
solutions.