Skip to main content

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

cotton_heroicons-0.1.1.tar.gz (151.4 kB view hashes)

Uploaded Source

Built Distribution

cotton_heroicons-0.1.1-py3-none-any.whl (371.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page