{"repo":"Rails-Designer/rails_icons","free":true,"listed":false,"github":"https://github.com/Rails-Designer/rails_icons","clone":"git clone https://github.com/Rails-Designer/rails_icons.git","description":"Add any icon library to a Rails app. Support for Lucide, Phosphor, Heroicons and others","language":"Ruby","stars":323,"topics":["feather-icons","heroicons","icons","rails","lucide-icon","lucide-icons","tabler-icons","phosphor","phosphor-icons","phosphoricons"],"license":"MIT","category":"ui-components","readme_excerpt":"Rails Icons Add any icon library to a Rails app. Rails Icons has first-party support for a handful of libraries. It is library agnostic so it can be used with any icon library using the same interface. Rails Icons is a Rails gem for the Icons Ruby gem. The icons are sourced directly from their respective GitHub repositories via the Icons gem, ensuring Rails Icons remain lightweight. Sponsored By Rails Designer Install Add the gem: Install, choosing one of the supported libraries: Example The generator also mounts an icon preview at /rails icons where you can browse and search all your available icons. This route is open by default, so restrict it in production if needed. Usage Sprites Rails Icons supports SVG sprites for improved performance. Instead of inlining each icon's full SVG, sprite icons reference a shared set of definitions via . Configuration External sprite (default) Rails Icons serves the sprite at /rails icons/sprite.svg out of the box — no controller, route or MIME type setup needed. The endpoint sits at the host app level, so it stays reachable even when the preview engine is mounted behind authentication. Point at a precompiled file or a CDN by changing the location: Override per icon: Inline sprite Set the location to nil and embed the sprite directly in your layout: You can also generate a sprite for a specific set of icons: Helpers sprite icon accepts the same options as icon : icons sprite generates the inline containing definitions: First-party libraries","default_branch":null,"files":null,"tree":[],"storefront":"/r/Rails-Designer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Rails-Designer/rails_icons/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}