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, **) = .with_indifferent_access size = .delete(:size) = .merge width: size, height: size if size content_tag(:svg, IconProvider.icon(named).html_safe, LucideRails..merge(**)) end |