https://github.com/ColinFay/feathericons
Feather Icons for Shiny
https://github.com/ColinFay/feathericons
Last synced: 5 months ago
JSON representation
Feather Icons for Shiny
- Host: GitHub
- URL: https://github.com/ColinFay/feathericons
- Owner: ColinFay
- License: other
- Created: 2018-08-23T19:58:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T11:02:55.000Z (about 6 years ago)
- Last Synced: 2024-08-06T03:04:33.195Z (8 months ago)
- Language: R
- Size: 436 KB
- Stars: 24
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - ColinFay/feathericons - Feather Icons for Shiny (R)
README
---
output: github_document
---```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# feathericons
The goal of {feathericons} is to give access to feathericons svg icons in Shiny.
More about Feather Icons on
## Installation
You can install the dev version of feathericons from GitHub:
``` r
remotes::install_github("ColinFay/feathericons")
```## How to use
You'll need to call `use_feather_icons` in your Shiny UI. Then, an icon is added with `feather_icons`, which takes as arguments the name of the icon.
```{r example}
library(shiny)
library(feathericons)ui <- fluidPage(
use_feather_icons(),
tags$p(feather_icons("circle"), "Log in")
)server <- function(input, output, session) {
}shinyApp(ui, server)
```## List of icons
The list is available as a vector:
```{r eval = TRUE}
feathericons::icons_list
```## All current supported icons :
Run this chunk to get all supported icons and the results:
```{r}
library(shiny)ui <- fluidPage(
use_feather_icons(),
lapply(icons_list, function(x){
HTML(feather_icons(x), ":", x)
}
)
)server <- function(input, output, session) {
}shinyApp(ui, server)
```
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By participating in this project you agree to abide by its terms.