Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 959 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 959 Bytes

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
  # config.raise_on_missing_icon = true
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.