What Icons Are Included

Rendering An Icon

  • We use the inline_svg gem.

  • To render an icon, use the following snippet and swap out the name of the file and the classes as necessary.

<%= inline_svg_tag("/heroicons/icon-chevron-right.svg") %>

Add Classes

Most commonly used to change the size or color.

<%= inline_svg_tag("/heroicons/icon-chevron-right.svg", class: "w-5 text-indigo-500") %>

FAQ