Search code examples
rshinyicons

How to increase the icon() size in a shiny app using css or parameter


How can I increase the size of the icon() in a shiny app

library(shiny)

ui <- fluidPage(
  tags$head(
    tags$link(rel = "stylesheet", type = "text/css", href = "styles.css")
  ),
  
  # Rest of your UI code
  icon("square_check", class = "fa")  # Apply the "fa" class to the icon
  # ...
)

server <- function(input, output) {
  # Server code
  # ...
}

shinyApp(ui, server)

Solution

  • You can try

    icon("square_check", class = "fa", style = "font-size: 30px;")