Sha256: 6404a7c3cb40ecee376a432cfeb979ae333aafb05a08fe98155888c959fbdb12

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

module Fontawesome5
  module Rails
    module Helper
      def far_icon(shape, options = { text: '', size: '1x' })
        capture do
          concat(content_tag(:i, '', class: "far fa-#{shape} fa-#{options[:size]} mr-1"))
          concat(options[:text])
        end
      end

      def fas_icon(shape, options = { text: '', size: '1x' })
        capture do 
          concat(content_tag(:i, '', class: "fas fa-#{shape} fa-#{options[:size]} mr-1"))
          concat(options[:text])
        end
      end

      def fab_icon(shape, options = { text: '', size: '1x' })
        capture do 
          concat(content_tag(:i, '', class: "fab fa-#{shape} fa-#{options[:size]} mr-1"))
          concat(options[:text])
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fontawesome5-rails-5.0.8.0 lib/fontawesome5/rails/helper.rb