FAQ component

The FAQ component provides a simple and dynamic frequently asked questions (FAQ) UI component for your Rails app.

Each question is collapsible with an easy open/close toggle.

Installation

Copy
rails g instrumental:faq

To insert a FAQ component into a view:

Copy
rails g instrumental:faq:insert

Customization

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

app/views/shared/components/faq/_faq.html.erb
app/views/shared/components/faq/_question.html.erb

The _faq.html.erb file manages the container for your FAQ items. The _question.html.erb file manages each individual FAQ question.

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