Skip to main content

Icons integration for django-cotton, starting with Heroicons

Project description

A package to provide popular icon packs for use with Django Cotton. For now, Heroicons is supported heroicons.

Install

1. Install from pypi

pip install django-icons

2. Install into your django project

# settings.py
INSTALLED_APPS = [
  'django-icons'
]

3. Use in template

<c-heroicon.[kebab-case heroicon name] variant="outline|solid|mini" [any other attribute will pass to the <svg> tag] />

  • variant defaults to outline
  • 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" />

Roadmap

  • Add Tabler.io 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

cotton_icons-0.0.2.tar.gz (151.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cotton_icons-0.0.2-py3-none-any.whl (350.1 kB view details)

Uploaded Python 3

File details

Details for the file cotton_icons-0.0.2.tar.gz.

File metadata

  • Download URL: cotton_icons-0.0.2.tar.gz
  • Upload date:
  • Size: 151.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.0 Linux/6.8.0-1021-azure

File hashes

Hashes for cotton_icons-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1c93676cf58c6a5bf59e62ab8af47282ad0690b19b42be4bf5e02d6ae7b39be1
MD5 95df4a2374038332232a700cb308460f
BLAKE2b-256 ecf29c0f97c54bdb0f5e23ac4741289a7af8531d444d0bf804d2c41bd8bbb9d2

See more details on using hashes here.

File details

Details for the file cotton_icons-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cotton_icons-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 350.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.0 Linux/6.8.0-1021-azure

File hashes

Hashes for cotton_icons-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3383885186f548cfeeff6fa94b69087088c637341bdd174c954a6b6a2116cae5
MD5 9febc6f2a5a9f3732e87afb2d635ef4d
BLAKE2b-256 e3c9ee965836296996284325c4c816c9b6f4b5ba188a9ab63a8e240ed30c8b1b

See more details on using hashes here.

Supported by

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