1. Component Guide
  2. Copy to clipboard
  3. Default
Copy to clipboard example

Default

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/copy_to_clipboard", {
  label: "Copy and send this link to someone and they’ll be able to preview your draft on GOV.UK.",
  copyable_content: "http://www.example.org",
  button_text: "Copy link"
} %>