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.
rails g instrumental:faq
To insert a FAQ component into a view:
rails g instrumental:faq:insert
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.
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.