Class: Primer::BorderBoxComponent::Row

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

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**kwargs) ⇒ Row

Returns a new instance of Row.

Parameters:

  • kwargs (Hash)

    <%= link_to_style_arguments_docs %>



79
80
81
82
83
84
85
86
# File 'app/components/primer/border_box_component.rb', line 79

def initialize(**kwargs)
  @kwargs = kwargs
  @kwargs[:tag] = :li
  @kwargs[:classes] = class_names(
    "Box-row",
    kwargs[:classes]
  )
end

Instance Attribute Details

#kwargsObject (readonly)

Returns the value of attribute kwargs.



77
78
79
# File 'app/components/primer/border_box_component.rb', line 77

def kwargs
  @kwargs
end