Labels (a.k.a. Badges)

The labels component from Instrumental Components provides a clean and flexible way to display labels (a.k.a. badges) on your pages.

Installation

Copy
rails g instrumental:label

To insert a component into a view:

Copy
rails g instrumental:label:insert

Customization

Find all of your customization options (via local variables) in these files:

app/views/shared/components/labels/_label.html.erb

Instrumental Components

I created Instrumental Components to make designing and building professional apps with Ruby on Rails easy, fast, and fun. I use it on all of my projects and I hope it helps you build something great.

Brian Casel
Brian Casel
Creator of Instrumental Components
Learn more Send me a question or request