Sha256: b5d2bc19f3223fb34755e0f358e258cd9c8d5e3aad2429712a7b0f5a5f69721d

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

module Ariadne
  # Adds a footer to the bottom of every page.
  class FooterComponent < Ariadne::Component
    DEFAULT_CLASSES = "py-5"

    # @example Default
    #
    #   <%= render(Ariadne::FooterComponent.new) %>
    #
    # @param classes [String] <%= link_to_classes_docs %>
    # @param attributes [Hash] <%= link_to_attributes_docs %>
    def initialize(classes: "", attributes: {})
      @classes = class_names(
        DEFAULT_CLASSES,
        classes
      )

      @attributes = attributes
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.6 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.5 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.4 app/components/ariadne/footer_component.rb