Skip to content

MSILycanthropy/iconify-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Easy to use Icons for Rails

Resources

License

Stars

Watchers

Forks

Packages

No packages published