html_dependency_phosphor: HTML dependency for Phosphor Icons

View source: R/ph_i.R

html_dependency_phosphorR Documentation

HTML dependency for Phosphor Icons

Description

Allow to explicitly load dependency for using Phosphor icons.

Usage

html_dependency_phosphor()

Value

An htmltools::htmlDependency() object.

Note

Dependency is automatically loaded when using ph_i(), but in some case, like when using icon argument in some function, you might need to call html_dependency_phosphor() to make icons appears.

Examples


library(shiny)
library(phosphoricons)

ui <- navbarPage(
  title = "Phosphor Icons",
  header = list(
    html_dependency_phosphor()
  ),
  tabPanel("Home", icon = ph_i("house")),
  tabPanel("Parameters"),
  tabPanel("Results")
)

server <- function(input, output, session) {
  
}

if (interactive())
  shinyApp(ui, server)

phosphoricons documentation built on May 29, 2024, 2:07 a.m.