Module: Heroicons::Helper
- Defined in:
- lib/heroicons/helper.rb
Instance Method Summary collapse
Instance Method Details
#heroicon(name, variant: Heroicons.config.variant, **attributes) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/heroicons/helper.rb', line 7 def heroicon(name, variant: Heroicons.config.variant, **attributes) icon = Heroicons::Icon.new(name: name, variant: variant, attributes: Heroicons.config.attributes[variant].merge(attributes)) raw icon.render end |