Class: SiteComponent
- Defined in:
- app/components/site_component.rb
Overview
Site — base site wrapper with Fomantic-UI site module.
Wraps content in a container that initializes the Fomantic-UI site module via the fui-site Stimulus controller.
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
9 10 11 |
# File 'app/components/site_component.rb', line 9 def to_s tag.div(data: { controller: "fui-site" }) { @content } end |