Renders an icon using the Anyicon gem.
Parameters:
the name of the icon in the format ‘collection:icon_name’
additional properties to apply to the SVG element
Returns:
the rendered SVG icon
11 12 13
# File 'app/helpers/anyicon/rails/icon_helper.rb', line 11 def anyicon(icon:, **props) Anyicon::Icon.render(icon:, **props) end