Sha256: 6ed14707f2e50597dc553ce028d51a79b4b435cb556c94d6c5e2d442fa556775
Contents?: true
Size: 463 Bytes
Versions: 59
Compression:
Stored size: 463 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") 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
59 entries across 59 versions & 1 rubygems