Module: Rubicons::FontAwesome6::RailsHelper

Included in:
Phlex
Defined in:
lib/rubicons/font_awesome6/rails_helper.rb

Overview

Rails view helper for Font Awesome 6 icons

Instance Method Summary collapse

Instance Method Details

#fa6_icon(name, options = {}) ⇒ Object



7
8
9
# File 'lib/rubicons/font_awesome6/rails_helper.rb', line 7

def fa6_icon(name, options = {})
  Rubicons::FontAwesome6.icon(name, **options).html_safe
end

#fa6_icon!(name, options = {}) ⇒ Object



11
12
13
# File 'lib/rubicons/font_awesome6/rails_helper.rb', line 11

def fa6_icon!(name, options = {})
  Rubicons::FontAwesome6.icon!(name, **options).html_safe
end