Skip to content

vacmar01/fh-heroicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git+https://github.com/vacmar01/fh-heroicons.git

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.

Caveat

This is very much wip as well as my first python library ever. So please treat it gently.

Currently only the outline versions of the icons are supported. Support for the solid variants coming soon.

License

The library is distributed under the MIT LICENSE.

About

https://heroicons.com as FastHTML components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages