Easy to use Icons for Rails
This gem provides an easy integration with the icons from iconify.
Take any of the icons from their json icon sets.
They can be previewed at iconify.design
Installation
Grab a json file from iconify.
./bin/bundle add iconify-rails
./bin/rails iconify:install
Now setup the location of the json, and the preferred variant if there is one.
Iconify.configure do |config|
config.file = "vendor/icons/heroicons.json"
config.suffix = :suffix
end
Usage
In any view just use ye olde icon
helper.
<%= icon(:house, class: 'size-6') %>
License
iconify-rails
is released under the MIT License.