bootstrap-icons
bootstrap-icons copied to clipboard
A ruby gem and a rails helper that makes including svg Bootstrap Icons in your project simple.
bootstrap-icons
Bootstrap Icons: v1.11.1
Consider using icon fonts instead of this gem https://blog.getbootstrap.com/2020/12/11/bootstrap-icons-1-2-0/.
This project was inspired on Octicons packages.
Using bootstrap svg icons in Rails
-
Add this to your
Gemfile
$ gem 'bootstrap-icons-helper'
-
Use this tag in your erbs
$ <%= bootstrap_icon "check", width: 5, height: 5, fill: "blue" %>
Docs
- bootstrap-icons-gem
- bootstrap-icons-helper