Module: Heroicons::IconsHelper

Defined in:
app/helpers/heroicons/icons_helper.rb

Instance Method Summary collapse

Instance Method Details

#heroicon_tag(name, variant: :solid, size: 24, **options) ⇒ Object



2
3
4
# File 'app/helpers/heroicons/icons_helper.rb', line 2

def heroicon_tag(name, variant: :solid, size: 24, **options)
  raw Heroicons::Icon.new(name, variant: variant, size: size, **options).render
end