Skip to content

Icons

Avo provides a collection of SVG icons organized into two directories: avo and heroicons (check heroicons). These icons are easily accessible using the svg method.

To render an icon in your application, use the svg method. This method allows you to specify the icon's path and class.

Examples:

ruby
helpers.svg("avo/editor-strike")
ruby
helpers.svg("heroicons/outline/magnifying-glass-circle", class: "block h-6 text-gray-600")

There are some places where Avo have custom DSL accepting the icon option. There you only need to specify the icon's path (avo/... or heroicons/...). Behind the scenes Avo applies the svg method.