Panels

The Panels component (a.k.a. Accordion) is a great way to organize lots of information into a collapsible set of containers. Perfect for multi-part forms or settings panels.

They come packed with customization options.

Demos

Installation

Copy
rails g instrumental:panels

To insert a component into a view:

Copy
rails g instrumental:panels:insert

To insert a panel into a panels component in a view:

Copy
rails g instrumental:panels:insert

Customization

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

app/views/shared/components/panels/_panels.html.erb
app/views/shared/components/panels/_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