Skip to content

How to add new tag images

slifszyc edited this page Oct 6, 2014 · 2 revisions

Tags are used to classify laws into different 'categories'. We're providing a set of default tags under lib/tag-images directory.

To add a new tag, just follow these steps:

  1. Download any .svg image you want. You can find svg images in http://www.flaticon.com/ or https://icomoon.io/ for example.
  2. Place them under lib/tag-images/images.
  3. Edit lib/tag-images/component.json file adding the new svg images to the images attribute of this file.
  4. Add the new images in lib/tag-images/index.js file.
  5. In your app, create the new tags assigning each one a new image.

That's it!