Module: Rubicons::Heroicons::RailsHelper
- Included in:
- Phlex
- Defined in:
- lib/rubicons/heroicons/rails_helper.rb
Overview
Rails view helper for Heroicons
Instance Method Summary collapse
Instance Method Details
#heroicon(name, options = {}) ⇒ Object
7 8 9 |
# File 'lib/rubicons/heroicons/rails_helper.rb', line 7 def heroicon(name, = {}) Rubicons::Heroicons.icon(name, **).html_safe end |
#heroicon!(name, options = {}) ⇒ Object
11 12 13 |
# File 'lib/rubicons/heroicons/rails_helper.rb', line 11 def heroicon!(name, = {}) Rubicons::Heroicons.icon!(name, **).html_safe end |