Tabs

The Tabs component is a great way to organize and group related content in a visually distinct way.

Installation

Copy
rails g instrumental:tabs

To insert a component into a view:

Copy
rails g instrumental:tabs:insert

Customization

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

app/views/shared/components/tabs/_tabs.html.erb
app/views/shared/components/tabs/_tab.html.erb
app/views/shared/components/tabs/_tab_panel.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