Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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 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.

About

https://heroicons.com as FastHTML components

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages