# NOT RUN {
app <- dash_app()
# Add a single stylesheet with URL
app %>% add_stylesheet("https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css")
# Add multiple stylesheets with URL
app %>% add_stylesheet(list(
"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css",
"https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"
))
# Add a single stylesheet with a list
app %>% add_stylesheet(
list(
href = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css",
integrity = "sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
)
)
# Add multiple stylesheets with both URL and list
app %>% add_stylesheet(
list(
"https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css",
"https://fonts.googleapis.com/css?family=Lora",
list(
href = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css",
integrity = "sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
)
)
)
# }
Run the code above in your browser using DataLab