Page Header

When building your pages and layouts in a Rails app, consistency in design goes a long way to helping your app's users find your app intuitive and easy to use.

The Page Header component offers a way to add consistency across all of your pages.

It's a simple container that holds your page's H1 headline tag, along with optional buttons, spacing, and margin.

When using Instrumental Scaffolds, the page header is automatically added to your scaffolded pages' layouts.

Installation

Copy
rails g instrumental:page_header

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 this file:

app/views/shared/components/page_header/_page_header.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