Class: SiteComponent

Inherits:
Component show all
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

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



9
10
11
# File 'app/components/site_component.rb', line 9

def to_s
  tag.div(data: { controller: "fui-site" }) { @content }
end