Sha256: c7eadf642643c78ce0b58aef6aa5ca60f2639573618b982f7435694cc5a8ca72
Contents?: true
Size: 439 Bytes
Versions: 21
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true module Blacklight class SearchButtonComponent < Blacklight::Component 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: "visually-hidden-sm me-sm-1 submit-search-text") + render(Blacklight::Icons::SearchComponent.new) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems