Data lists

The data list component provides a structured way to display a list of data, where each item has a label and a value.

Demos

Installation

Copy
rails g instrumental:data_list

To insert a component into a view:

Copy
rails g instrumental:data_list:insert

Customization

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

app/views/shared/components/_data_list.html.erb
app/views/shared/components/data_list/_data_list_item.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