Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rio_bootstrap-0.1.0.tar.gz (222.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rio_bootstrap-0.1.0-py3-none-any.whl (222.4 kB view details)

Uploaded Python 3

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

Hashes for rio_bootstrap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0fd6f590376dc05e319540bffc1e42f5b4ca4d7f72f917fd5fc8be7d4f2960a
MD5 ab7ab7c82fe954f238643fde7a42e3f7
BLAKE2b-256 62793a16d39542ad3c85b90999b02e9fadc5469a6fdd9b3e7876462fcad2acbe

See more details on using hashes here.

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

Hashes for rio_bootstrap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d32b616d066a18b35fc4118cb94412dc7196ae2d61d17168ceafbfa7007b01bd
MD5 7f0d844224c5de14781453a4a28e99ee
BLAKE2b-256 b6a3bcea7967cfa55a6e443d276beb034ce42af04cede0b32c27150fd5bcecce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page