Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap_icons_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap_icons_rails

  • 1.113.02
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Boostrap Icons Rails

Gem Version BI version Build Status

bootstrap_icons_rails provides the Bootstrap Icons web fonts, stylesheets as a Rails engine for use with the asset pipeline.

Keep track of changes in Changelog.

Installation

Add this line to your application's Gemfile:

gem 'bootstrap_icons_rails'

Install as SVG with JS

In your application.css, include the css file:

 *= require bootstrap_icons

or if you prefer scss add this to your application.scss file:

@import 'bootstrap_icons.css'; //application.scss

If you're using .sass and having problem with loading, try to omit .css extenstion and import font as follows:

@import 'bootstrap_icons';

Usage

Gem provides Bootstrap Icons through helper. In your views just call bi_icon.

Basic usage

bi_icon('alarm')
# => <i class="bi bi-alarm"></i>

bi_icon('alarm', style: 'color: Tomato')
# => <i class="bi bi-alarm" style="color:Tomato"></i>

bi_icon('alarm', class: 'my-class', text: 'Alarm')
# => <i class="bi bi-alarm my-class"></i>
# => <span class="bi-text">Alarm</span>

bi_icon(:alarm, text: 'Alarm', right: true)
# => <span class="bi-text-r">Alarm</span>
# => <i class="bi bi-alarm"></i>

License

The gem is available as open source under the terms of the MIT License.

Bootstrap Icons License.

Buy me a coffee

If you liked this gem, you can Buy Me A Coffee.

FAQs

Package last updated on 26 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc