Class: Primer::BorderBoxComponent::Header

Inherits:
Slot
  • Object
show all
Defined in:
app/components/primer/border_box_component.rb

Overview

:nodoc:

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JoinStyleArgumentsHelper

#join_style_arguments

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Header

Returns a new instance of Header.

Parameters:

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>



53
54
55
56
57
58
59
60
# File 'app/components/primer/border_box_component.rb', line 53

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

Instance Attribute Details

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



51
52
53
# File 'app/components/primer/border_box_component.rb', line 51

def system_arguments
  @system_arguments
end