Class: Irelia::PageHeader::Preview

Inherits:
ComponentPreview
  • Object
show all
Defined in:
app/components/irelia/page_header/preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject

You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”



7
8
9
10
11
12
# File 'app/components/irelia/page_header/preview.rb', line 7

def default
  irelia_page_header(title: "Projects", subline: "List of all your projects.") do |header|
    header.with_button { "Create a project" }
    header.with_button(color: :secondary) { "Documentation" }
  end
end