class Primer::Alpha::Overlay::Footer

Footer of an overlay. See <%= link_to_component(Primer::Alpha::Overlay) %>.
A ‘Overlay::Footer` is a compositional component, used to render the

def call

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

def initialize(

Parameters:
  • system_arguments (Hash) -- <%= link_to_system_arguments_docs %>
  • align_content (Symbol) -- The alginment of contents. <%= one_of(Primer::Alpha::Overlay::ALIGN_CONTENT_OPTIONS) %>
  • show_divider (Boolean) -- Show a divider between the footer and body.
def initialize(
  show_divider: false,
  align_content: DEFAULT_ALIGN_CONTENT,
  **system_arguments
)
  @system_arguments = deny_tag_argument(**system_arguments)
  @system_arguments[:tag] = :div
  @system_arguments[:classes] = class_names(
    "Overlay-footer",
    ALIGN_CONTENT_MAPPINGS[fetch_or_fallback(ALIGN_CONTENT_OPTIONS, align_content, DEFAULT_ALIGN_CONTENT)],
    { "Overlay-footer--divided": show_divider },
    system_arguments[:classes]
  )
end