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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cotton_heroicons-0.1.1.tar.gz
(151.4 kB
view details)
Built Distribution
File details
Details for the file cotton_heroicons-0.1.1.tar.gz
.
File metadata
- Download URL: cotton_heroicons-0.1.1.tar.gz
- Upload date:
- Size: 151.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1525cda0ea7bbb36ff55f354bb1b97d8bccaae0bc46d7a35e2c47e3cf3256273 |
|
MD5 | ed18b29e060aac0ad022edbf52e5af34 |
|
BLAKE2b-256 | e45c81dbd8517f30aa42b6e583f59e4d531d9a13c3bb4d09678d8b6143759726 |
File details
Details for the file cotton_heroicons-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cotton_heroicons-0.1.1-py3-none-any.whl
- Upload date:
- Size: 371.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1c5d6783ad9ac62bbcd47a0ab252649f22cfa8da3705be6242df5d92b6680c |
|
MD5 | 172718b6dc0653b0b87cbd88336aa4b4 |
|
BLAKE2b-256 | 959d8b41193f21c46cced0a0d803c43fda773dc6cc29f06f3ef7de10b016294f |