A quick way to add Bootstrap Icons with Django template tags.
Project description
django-bootstrap-icons
A quick way to add Bootstrap Icons with Django template tags.
This package contains Bootstrap Icons v1.2.2 (Jan 2021).
Installing
django-bootstrap-icons
can be found on pypi. Run pip install django-bootstrap-icons
to install the package on your machine.
Getting Started
Using django-bootstrap-icons is easy. First, install the django_material_icons
Django app in your settings file.
INSTALLED_APPS = [
'django_bootstrap_icons'
]
Also, include the following tags in your base template file. It includes the CDN link to the bootstrap icons web font. If you have your own source for the web font, feel free to opt out of this tag!
{% load django_bootstrap_icons %}
{% include_bootstrap_icons %}
Then, add an icon with the following tag. Give the name icon's name as the first parameter, and that's all that's required.
{% load django_bootstrap_icons %}
{% bs_icon 'alarm' %}
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- Christian Wiegand - Creator - christianwgd
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- Thanks bootstrap Icons!
- Thanks to Doug Dresser dwdresser for the django_material_icon app that i used as a template
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
Built Distribution
Hashes for django-bootstrap-icons-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b2c1a1097d0def390740f100bf2890ad3a9b321729400224cdd131aafc9fe2 |
|
MD5 | de6869d3410ab71737d8921d55ad9969 |
|
BLAKE2b-256 | d981b597cc187d071db776d71c284deecec16bcba94d976fc729056d2b16156e |
Hashes for django_bootstrap_icons-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f60e97650a83b116248c8718393192b2d3e19d790ea1cde519e65a734a9dfd |
|
MD5 | d51e621a4dc980b680fcbc04ced49093 |
|
BLAKE2b-256 | 755d29e9e1cb7f7b4fc105309b59843ea29dfc72002daaf3f906550c5f72d3a8 |