Class: Primer::DetailsComponent::Body
- Defined in:
- app/components/primer/details_component.rb
Overview
Use the Body slot as the main content to be shown when triggered by the Summary.
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Method Summary collapse
- #component ⇒ Object
-
#initialize(**system_arguments) ⇒ Body
constructor
A new instance of Body.
Methods included from JoinStyleArgumentsHelper
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ Body
Returns a new instance of Body.
57 58 59 60 |
# File 'app/components/primer/details_component.rb', line 57 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] ||= :div end |
Instance Method Details
#component ⇒ Object
62 63 64 |
# File 'app/components/primer/details_component.rb', line 62 def component Primer::BaseComponent.new(**@system_arguments) end |