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