Heroicons and Tabler Icons for Django Cotton
Project description
A package to provide popular icon packs for use with Django Cotton. Currently, Heroicons and Tabler Icons are supported.
Supported Icon Libraries
- Heroicons:
v2.1.5 - Tabler Icons:
v3.34.0
Install
1. Install from pypi
pip install cotton-icons
2. Install into your django project
# settings.py
INSTALLED_APPS = [
'cotton_icons'
]
3. Use in template
<c-heroicon.[kebab-case heroicon name] variant="outline|solid|mini" [any other attribute will pass to the <svg> tag] />
<c-tablericon.[kebab-case tabler icon name] variant="outline|filled" [any other attribute will pass to the <svg> tag] />
variantdefaults tooutline- for outline variant, you can also pass
stroke-width="" stroke_linecap="" stroke_linejoin=""
Examples:
<c-heroicon.chevron-down class="size-5" /> <!-- default variant "outline" -->
<c-heroicon.chevron-down variant="solid" class="size-5" />
<c-heroicon.chevron-down variant="mini" class="size-5" />
<c-tablericon.graph class="size-5" /> <!-- default variant "outline" -->
<c-tablericon.graph variant="filled" class="size-5" />
Roadmap
- Add Tabler Icons
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cotton_icons-0.1.0.tar.gz.
File metadata
- Download URL: cotton_icons-0.1.0.tar.gz
- Upload date:
- Size: 683.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb497949a57dd9bbe54a97e31988f506e54adbb7d2ccb880eeb0b4137f587b6
|
|
| MD5 |
4d83460a3b09489e13a91e6360d606e8
|
|
| BLAKE2b-256 |
a905dd9b5f76446c9b695a512da2824186e3ece588700896244af605b61cc387
|
File details
Details for the file cotton_icons-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cotton_icons-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3b4eb63d3b32c1b93035fbe8329b8d3aa343bd3e1965046d13a6e1f9831577
|
|
| MD5 |
d5bae51045d1187e1794ec8745b312e7
|
|
| BLAKE2b-256 |
bd79a24964bba1b27b1e4c1e9e8c2f3ae2f7087cc8a22c71a09b4e10510081b9
|