A Django Cotton Component Library of Heroicons
Project description
cotton-heroicons
A Django Cotton Component Library of Heroicons
Usage
To use the icons in your templates, simply add the component tag with the icon name as the tag name. The default variant is 'outline', but you can specify a different variant using the 'variant' attribute. You can also add additional classes using the 'class' attribute.
<!-- The default variant is 'outline' -->
<c-heroicon.cloud/>
<!-- Specify the variant with the 'variant' attribute -->
<c-heroicon.shopping-bag variant="mini"/>
<!-- Add additional classes using the 'class' attribute -->
<c-heroicon.square-3-stack-3d class="text-violet-700"/>
Installation
pip install cotton-heroicons
Update Django settings:
INSTALLED_APPS = [
...
'django_cotton',
'cotton_heroicons',
...
]
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_heroicons-0.1.2.tar.gz.
File metadata
- Download URL: cotton_heroicons-0.1.2.tar.gz
- Upload date:
- Size: 151.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ccf258ba57cf680e3ec27f20b6d12fd9540ebda2b26781cd40a140b61ebd6a1
|
|
| MD5 |
ceedb323b972212c38876a5a38eeb0ca
|
|
| BLAKE2b-256 |
b4aeac431abe155c0b32ce890af6190b214597ae5312830b6153e42c47a579cf
|
File details
Details for the file cotton_heroicons-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cotton_heroicons-0.1.2-py3-none-any.whl
- Upload date:
- Size: 371.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe6ab0e8d7ecd679a4fbf4ecdf0e80d1f4eb55148882738f12d32c7c70b5d0f
|
|
| MD5 |
17d13db24487cb210da204ddaa0bac2a
|
|
| BLAKE2b-256 |
5ad8a04def41320dd364cd4b11fe1d2cc3c86f978d5ff8d923e5b0e9a9eeb186
|