Module: Heroicon::ApplicationHelper

Defined in:
app/helpers/heroicon/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#heroicon(name, variant: Heroicon.configuration.variant, options: {}, path_options: {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/helpers/heroicon/application_helper.rb', line 5

def heroicon(name, variant: Heroicon.configuration.variant, options: {}, path_options: {})
  raw Heroicon::Icon.render(
    name: name,
    variant: variant,
    options: options,
    path_options: path_options
  )
end