Sha256: 06e23b714716c8b02704390a9648b730e3a4e66532524b6c8856e04ddf0d56d0

Contents?: true

Size: 560 Bytes

Versions: 24

Compression:

Stored size: 560 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

24 entries across 24 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.12 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.12-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-arm64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.11-aarch64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10-x86_64-linux app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10-x86_64-darwin app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10-x64-mingw32 app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10-x64-mingw-ucrt app/components/ariadne/footer_component.rb
ariadne_view_components-0.0.10-arm64-darwin app/components/ariadne/footer_component.rb