Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-bootstrap-icons-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

django_bootstrap_icons-0.1.0-py3-none-any.whl (4.1 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