Class: Polaris::Card::SubsectionComponent

Inherits:
Polaris::Component
  • Object
show all
Defined in:
app/components/polaris/card/section_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**system_arguments) ⇒ SubsectionComponent

Returns a new instance of SubsectionComponent.



32
33
34
35
36
37
38
39
# File 'app/components/polaris/card/section_component.rb', line 32

def initialize(**system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = :div
  @system_arguments[:classes] = class_names(
    @system_arguments[:classes],
    "Polaris-LegacyCard__Subsection"
  )
end

Instance Method Details

#callObject



41
42
43
# File 'app/components/polaris/card/section_component.rb', line 41

def call
  render(Polaris::BaseComponent.new(**@system_arguments)) { content }
end