Sha256: 89bdd1aade513c2ff327ad8a5bf2181b0dc5ac632d90c83063b6d23670f09d40

Contents?: true

Size: 581 Bytes

Versions: 122

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

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

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

      @attributes = attributes
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.55-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.55-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.55 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.55-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.54-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.53-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.52-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.52-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.52-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.52-arm64-darwin app/components/ariadne/footer_component.rb