Phlex Iconoir

Gem Version

This is a port of Iconoir to Phlex

Instructions

Installation

Add the gem to your application:

bundle add phlex-icons-iconoir

Usage

Simply render the desired icon in your views. The name of the icon is the same as in the Iconoir library, just in pascal case.

render Phlex::Icons::Iconoir::Rocket.new(class: "size-8", stroke_width: 1.5)

Configuration

Add the following to your initializers

Phlex::Icons::Iconoir.configure do |config|
  config.default_variant = :regular
  config.default_class = "size-6"
  config.default_height = "24"
  config.default_width = "24"
  config.default_stroke_width = "2"
end

Special Thank You

This gem would not be possible without the following projects: