Sha256: e728c758515bcb36e38e04046aca5b5d454512368dbbf231cba4f429c5307c23

Contents?: true

Size: 561 Bytes

Versions: 148

Compression:

Stored size: 561 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) %>
    #
    # @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

148 entries across 148 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.34 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.34-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.33-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.32-arm64-darwin app/components/ariadne/footer_component.rb