This project is not covered by Drupal’s security advisory policy.
This module allows you to define "bundles" of svg icons in a module or theme *.icons.yml file. These icons are available through an Icon Field (provided by this module) or a render array with the icon type.
Icons are embedded as an svg element directly into your HTML. Either with the full svg code using the svg-files embed method or a use element with xlink:href for the svg-map embed method (this method requires using symbol elements with id attributes in your svg sprite file).
Please refer to the README file for instructions and more information.
Optional submodules providing icon bundles:
-
Icon Bundles: Material Icons (icon_bundles_material_icons)
- Google's "material design" icons (v3.0.1)
- Hundreds of icons across 16 categories/bundles
- Icons grouped in svg sprite sheets with symbols
- Small file size (each sprite sheet 1-63kb)
-
Icon Bundles: Bootstrap Icons (icon_bundles_bootstrap_icons)
- Bootstrap's icons (v1.2.1)
- About 1,200 icons (all in one bundle)
- One ~630kb svg sprite sheet
Optional submodules providing additional features:
- Icon Bundles: Menu Icons (
icon_bundles_menu_icons)- Adds an "Icon" field to menu link content forms
- Icons from any icon bundle enabled site-wide will be available to choose from
- The selected icon will be added as an
svgelement in the menu link just before the title - Some css is added to menu link icons as a starting point and can easily be overridden
- No icons are in this module
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.1 site reports using this module
- Created by cantrellnm on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.