Use Framework7 icons in shiny applications, see complete list of icons here : https://framework7.io/icons/.
Arguments
- ...
Icon name and f7Badge.
- lib
Library to use: NULL, "ios" or "md". Leave
NULL
by default. Specify, md or ios if you want to hide/show icons on specific devices. If you choose "md" be sure to include the corresponding fonts as they are not provided by shinyMobile. You can get them at https://github.com/marella/material-icons/.- color
Icon color, if any.
- style
CSS styles to be applied on icon, for example use
font-size: 56px;
to have a bigger icon.
Author
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "Icons",
f7SingleLayout(
navbar = f7Navbar(title = "icons"),
f7List(
f7ListItem(
title = tagList(
f7Icon("envelope")
)
),
f7ListItem(
title = tagList(
f7Icon("envelope_fill", color = "green")
)
),
f7ListItem(
title = f7Icon("house", f7Badge("1", color = "red"))
),
f7ListItem(
title = f7Icon("home", lib = "md"),
"Only for material design"
)
)
)
),
server = function(input, output) {}
)
}