Class: OverlayComponent
- 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
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_s ⇒ Object
13 14 15 |
# File 'app/components/overlay_component.rb', line 13 def to_s tag.div(class: "overlay") { @content } end |