Releases: narciero/heroicons-ruby
Releases · narciero/heroicons-ruby
v2.1.1
v2.1.0
v2.0.0
You can now configure default attributes
on a per variant
basis.
# config/initializers/heroicons.rb
Heroicons.configure do |config|
config.attributes[:mini] = { class: "h-4 w-4" }
end
Usage
The following render using the default class="h-4 w-4"
<%= heroicon "check", variant: :mini %>
If you specify an attribute (eg. class
) manually, that will overwrite the default completely, so the following will only render class="text-gray-500"
<%= heroicon "check", variant: :mini, class: "text-gray-500" %>