Class: OverlayComponent

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

Overview

Overlay — floating overlay wrapper for positioned content.

Usage:

Overlay {
  Menu(vertical: true, labeled_icon: true) {
    MenuItem(href: "#", icon: "twitter") { text "Tweet" }
  }
}

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



13
14
15
# File 'app/components/overlay_component.rb', line 13

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