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