Skip to content

Releases: narciero/heroicons-ruby

v2.1.1

19 Dec 03:01
Compare
Choose a tag to compare

Support for Heroicons v2.1.1

v2.1.0

18 Dec 20:15
Compare
Choose a tag to compare

Adds support for Heroicons v2.1.0.

v2.0.0

03 Dec 23:04
Compare
Choose a tag to compare

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" %>

v1.0.0

12 Sep 17:56
Compare
Choose a tag to compare

Support for Heroicons v2.0.18.