Sha256: 39839e68af32d8612738a34c4e6b11453fe2af44791aab3fb9dff1c8f6d00c7c
Contents?: true
Size: 473 Bytes
Versions: 65
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Renalware module ClipboardHelper # A helper to create a clipboard.js button https://clipboardjs.com/ def clipboard_button_for(target, width: "13rem", text: "") content_tag :button, data: { "clipboard-action" => "copy", "clipboard-target" => target }, class: "button compact low-key clipboard-btn" do image_tag "renalware/clippy.svg", width: width end end end end
Version data entries
65 entries across 65 versions & 1 rubygems