Sha256: a7398b8f53a289b74b2f2b60d54d4b26a304542e95652c6bffcbf90de8123732

Contents?: true

Size: 409 Bytes

Versions: 13

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class SearchButtonComponent < ::ViewComponent::Base
    def initialize(text:, id:)
      @text = text
      @id = id
    end

    def call
      tag.button(class: 'btn btn-primary search-btn', type: 'submit', id: @id) do
        tag.span(@text, class: "submit-search-text") +
          blacklight_icon(:search, aria_hidden: true)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/search_button_component.rb
blacklight-7.39.0 app/components/blacklight/search_button_component.rb
blacklight-7.38.0 app/components/blacklight/search_button_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/search_button_component.rb
blacklight-7.37.0 app/components/blacklight/search_button_component.rb
blacklight-7.36.2 app/components/blacklight/search_button_component.rb
blacklight-7.36.1 app/components/blacklight/search_button_component.rb
blacklight-7.36.0 app/components/blacklight/search_button_component.rb
blacklight-7.35.0 app/components/blacklight/search_button_component.rb
blacklight-7.34.0 app/components/blacklight/search_button_component.rb
blacklight-7.33.1 app/components/blacklight/search_button_component.rb
blacklight-7.33.0 app/components/blacklight/search_button_component.rb
blacklight-7.32.0 app/components/blacklight/search_button_component.rb