Module: Rubicons::Lucide::RailsHelper

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

Overview

Rails view helper for Lucide icons

Instance Method Summary collapse

Instance Method Details

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



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

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

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



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

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