Clipboard copy

Clipboard copy copies element text content or input values to the clipboard.

v0.23.0BetaNot reviewed for accessibility

Description

Use ClipboardCopy to copy element text content or input values to the clipboard.

This component by itself is not styled as a button, and can therefore only be used in limited circumstances. If you're looking for a button, consider using ClipboardCopyButton instead.

Accessibility

Always set an accessible label to help the user interact with the component.

Arguments

NameDefaultDescription
aria-label

N/A

String

String that will be read to screenreaders when the component is focused

value

nil

String

Text to copy into the users clipboard when they click the component.

for

N/A

String

Element id from where to get the copied value.

system_arguments

N/A

Hash

Examples