Module: LucideRails::RailsHelper

Defined in:
lib/lucide-rails/rails_helper.rb

Instance Method Summary collapse

Instance Method Details

#lucide_icon(named, **options) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/lucide-rails/rails_helper.rb', line 5

def lucide_icon(named, **options)
  options = options.with_indifferent_access
  size = options.delete(:size)
  options = options.merge width: size, height: size if size

  (:svg,
              IconProvider.icon(named).html_safe,
              LucideRails.default_options.merge(**options))
end