Skip to main content

FastHTML package for Heroicons

Project description

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.

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

fh_heroicons-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

fh_heroicons-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file fh_heroicons-0.1.0.tar.gz.

File metadata

  • Download URL: fh_heroicons-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for fh_heroicons-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e1e1c0b48c4193e617a682a88e3d4d73131bb52797aba746187c7158b9f4ab9
MD5 1090c18e30c0548b9c5ad9de38a8936e
BLAKE2b-256 5c615ff0dc1277f205e9aacdedae6cb0392f9105068b344cfb7b8c31ab9aab5c

See more details on using hashes here.

File details

Details for the file fh_heroicons-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fh_heroicons-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for fh_heroicons-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90eb46895be5e8a66f380181d8a896c66db3adb4eaf1d94595c4d6086a877119
MD5 daab002f28db29787e308d6f5c2de1b2
BLAKE2b-256 d8546fee198f369d31b7a3cfbfe1a26d76aa4bffe34812a22db2d44bca6c6d38

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