Icons are not displaying for the shiny application using the below code


# Wrap shinymaterial apps in material_page
ui <- material_page(
  title = "Basic Page + Side-Nav with Tabs",
  nav_bar_fixed = TRUE,
  # Place side-nav in the beginning of the UI
    fixed = TRUE,
    # Place side-nav tabs within side-nav
      side_nav_tabs = c(
        "Example Side-Nav Tab 1" = "example_side_nav_tab_1",
        "Example Side-Nav Tab 2" = "example_side_nav_tab_2"
      icons = c("cast", "insert_chart")
  # Define side-nav tab content
    side_nav_tab_id = "example_side_nav_tab_1",
    tags$h1("First Side-Nav Tab Content")
    side_nav_tab_id = "example_side_nav_tab_2",
    tags$h1("Second Side-Nav Tab Content")

server <- function(input, output) {
shinyApp(ui = ui, server = server)

Have you tried opening the Shiny app in your web browser? When I run the app locally in the RStudio viewer the icons will not load, however, when I open the app in the browser they load for me using the code you shared :smile:

1 Like

Thanks Koderkow. it is working now.

1 Like

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.