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
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
# config.raise_on_missing_icon = true
end
In any view just use ye olde icon
helper.
<%= icon(:house, class: 'size-6') %>
iconify-rails
is released under the MIT License.