Skip to main content

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] />

  • 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" />
<c-tablericon.graph class="size-5" /> <!-- default variant "outline" -->
<c-tablericon.graph variant="filled" class="size-5" />

Roadmap

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.1.0.tar.gz (683.1 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.1.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

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

Hashes for cotton_icons-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1eb497949a57dd9bbe54a97e31988f506e54adbb7d2ccb880eeb0b4137f587b6
MD5 4d83460a3b09489e13a91e6360d606e8
BLAKE2b-256 a905dd9b5f76446c9b695a512da2824186e3ece588700896244af605b61cc387

See more details on using hashes here.

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

Hashes for cotton_icons-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3b4eb63d3b32c1b93035fbe8329b8d3aa343bd3e1965046d13a6e1f9831577
MD5 d5bae51045d1187e1794ec8745b312e7
BLAKE2b-256 bd79a24964bba1b27b1e4c1e9e8c2f3ae2f7087cc8a22c71a09b4e10510081b9

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