Class: Irelia::PageHeader::Preview
- Inherits:
-
ComponentPreview
- Object
- ComponentPreview
- Irelia::PageHeader::Preview
- Defined in:
- app/components/irelia/page_header/preview.rb
Instance Method Summary collapse
-
#default ⇒ Object
You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”.
Instance Method Details
#default ⇒ Object
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. { "Create a project" } header.(color: :secondary) { "Documentation" } end end |