fh-heroicons
Any use of the code retrieved from heroicons.com is subject to the terms of the Heroicons license, found here.
This is a small library that let's you use heroicons as FastHTML ft components:
- Only saves the icons you use
- Icons are downloaded on the first use and cached locally in your working directory.
- full customization through css
Installation
pip install fh-heroicons
Usage
from fh_heroicons import Heroicon
Heroicon("academic-cap", style="color: red")
You can pass any valid heroicon icon name to Heroicon. A full searchable list of icons can be found here.
You can also specify which variant of the icons (outline or solid, default to outline) you want by adding the variant attribute to Heroicon.
Heroicon("academic-cap", variant="solid")
Caveat
This is very much wip as well as my first python library ever. So please treat it gently.
License
The library is distributed under the MIT LICENSE.
Metadata
Release files for fh-heroicons 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fh_heroicons-0.1.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fh_heroicons-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / fh_heroicons-0.1.0.tar.gz
| Download URL | fh_heroicons-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e1e1c0b48c4193e617a682a88e3d4d73131bb52797aba746187c7158b9f4ab9
|
|
BLAKE2b-256 checksum How to use checksums |
5c615ff0dc1277f205e9aacdedae6cb0392f9105068b344cfb7b8c31ab9aab5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / fh_heroicons-0.1.0-py3-none-any.whl
| Download URL | fh_heroicons-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90eb46895be5e8a66f380181d8a896c66db3adb4eaf1d94595c4d6086a877119
|
|
BLAKE2b-256 checksum How to use checksums |
d8546fee198f369d31b7a3cfbfe1a26d76aa4bffe34812a22db2d44bca6c6d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|