Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/posit-dev/py-faicons
An interface to Font Awesome for use in PyShiny
https://github.com/posit-dev/py-faicons
Last synced: 3 days ago
JSON representation
An interface to Font Awesome for use in PyShiny
- Host: GitHub
- URL: https://github.com/posit-dev/py-faicons
- Owner: posit-dev
- License: mit
- Created: 2021-12-10T23:15:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T23:28:59.000Z (10 months ago)
- Last Synced: 2024-11-02T15:51:56.582Z (6 days ago)
- Language: Python
- Size: 1.2 MB
- Stars: 5
- Watchers: 9
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-shiny-extensions - py-faicons - An interface to Font Awesome for use in Shiny for Python. (Shiny for Python / Python - UI Components)
README
# Font Awesome for Shiny
An interface to [Font-Awesome](https://fontawesome.com/) for use in Shiny for Python.
This package currently uses Font-Awesome 6.2.0.
## Installation
```python
pip install faicons
```## Usage
Use `icon_svg()` to get an `` representation of the icon.
```python
from faicons import icon_svg
icon_svg("play")
```Example usage in Shiny:
```python
from shiny import ui
ui.input_action_button("btn", "Press me", icon=icon_svg("play")).show()
```