Skip to content

elvinaspredkelis/phlex-tabler_icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phlex Tabler Icons

Gem Version

This is a port of Tabler Icons to Phlex

Note

Currently the gem only supports outlined icons. Filled icon variants will be introduced soon.

Instructions

Installation

Add the gem to your application:

bundle add phlex-tabler_icons

That's it!

Usage

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

render Phlex::TablerIcons::Rocket.new(class: "h-8 w-8", stroke_width: 1.5)

Configuration

Add the following to your initializers

Phlex::TablerIcons.configure do |config|
  config.default_class = "h-6 w-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:

About

Tabler Icons tailored for Phlex

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages