Class: PusherComponent

Inherits:
Component show all
Defined in:
app/components/pusher_component.rb

Overview

Pusher — main content wrapper for Sidebar layouts. The pusher wraps the page content that gets pushed when a sidebar opens.

Usage:

Sidebar(inverted: true) {
  MenuItem(href: "/") { text "Home" }
}
Pusher {
  text "Main content here"
}

Constant Summary

Constants inherited from Component

Component::HTML_OPTIONS

Instance Method Summary collapse

Methods inherited from Component

default, #initialize, #render_in, slot

Constructor Details

This class inherits a constructor from Component

Instance Method Details

#to_sObject



15
16
17
# File 'app/components/pusher_component.rb', line 15

def to_s
  tag.div(class: "pusher") { @content }
end