Module: Databasium::HeroiconHelper
- Included in:
- Components::Base, Navigation::BaseIcon
- Defined in:
- app/helpers/databasium/heroicon_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 13 14 15 16 17 18 19 |
# File 'app/helpers/databasium/heroicon_helper.rb', line 5 def heroicon(name, variant: Heroicon.configuration.variant, options: {}, path_options: {}) svg = Heroicon::Icon.render( name: name, variant: variant, options: , path_options: ).to_s if respond_to?(:safe) raw safe(svg) else svg.html_safe end end |