Brings Bootstrap icons to Rio
Project description
Rio Bootstrap 🌊 👢
Makes the fabulous icons from Bootstrap available in to Rio.
You can browse all icons on the Bootstrap website. The names in Rio are the same, except using underscores instead of dashes.
Installation 🛠️
rio-bootstrap is available on PyPI:
python -m pip install rio-bootstrap
Quickstart 🚀
To use the icons in your project just import this module, then use the icons as you'd use any other icon in Rio:
import rio
import rio_bootstrap # Import the module. This registers the icons with Rio.
class MyRoot(rio.Component):
def build(self) -> rio.Component:
return rio.Icon(
"bootstrap/wifi", # All icons are available as "bootstrap/<name>"
fill=rio.Color.BLUE,
min_width=5,
min_height=5,
align_x=0.5,
align_y=0.5,
)
app = rio.App(
build=MyRoot,
)
The icons will also show up in the Rio dev-tools, so you can easily browse them.
License ⚖️
The Python code in this project is available under the permissive MIT license. The icons themselves are not part of this repository. Check the Bootsrap icons repo for licensing information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rio_bootstrap-0.1.0.tar.gz.
File metadata
- Download URL: rio_bootstrap-0.1.0.tar.gz
- Upload date:
- Size: 222.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0fd6f590376dc05e319540bffc1e42f5b4ca4d7f72f917fd5fc8be7d4f2960a
|
|
| MD5 |
ab7ab7c82fe954f238643fde7a42e3f7
|
|
| BLAKE2b-256 |
62793a16d39542ad3c85b90999b02e9fadc5469a6fdd9b3e7876462fcad2acbe
|
File details
Details for the file rio_bootstrap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rio_bootstrap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 222.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d32b616d066a18b35fc4118cb94412dc7196ae2d61d17168ceafbfa7007b01bd
|
|
| MD5 |
7f0d844224c5de14781453a4a28e99ee
|
|
| BLAKE2b-256 |
b6a3bcea7967cfa55a6e443d276beb034ce42af04cede0b32c27150fd5bcecce
|