Elements
Clipboard copy has 3 main components.
![Elements of the clipboard copy component](/images/clipboard-copy-elements.37464086fb18a869.png)
- Copy content: the content that will be copied to the user’s clipboard.
- Clipboard button: completes the copy action when clicked.
- Tooltip: informs users that clicking the button will copy the content to their clipboard, or that the content has successfully been copied.
Usage
Use clipboard copy to allow users to quickly and easily copy content to their clipboard to paste it in another location. Copy content can vary but is usually a line or block of text or code. This is useful for copying system generated key values, to both reduce user effort and the occurrence of entry errors, for example. The clipboard copy has a few features that can be used to customize the component to fit different use cases.
Features
The clipboard copy component can be editable or read-only and both types can optionally be expandable.
Editable
An editable clipboard copy allows users to copy an editable text input box.
![Example of an editable clipboard copy component](/images/editable.1832082c079e87de.png)
Read-only
A read-only clipboard copy only allows the user to copy a predefined line of text that is not editable by the user.
![Example of a read-only clipboard copy component](/images/read-only.c06891263a22ad4b.png)
Expandable
An expandable clipboard copy allows for long lines of text to be stored in an expansion panel. Expanding the clipboard copy allows the user to view the full string that they can copy.
![Example of an expandable clipboard copy component](/images/expandable.71355cc5c4c1f70a.png)
Inline compact
An inline compact clipboard copy is placed directly inline with other text or used on its own when you want a lighter weight clipboard copy treatment.
![Example of an inline compact clipboard copy component with one action](/images/inline-one-action.58a44c388a7ec872.png)
An inline compact clipboard copy can include one or two action buttons next to it. The second action is customizable and optional.
![Example of an inline compact clipboard copy component with two actions](/images/inline-two-actions.4ae22a575617af65.png)
Clipboard copy in context
Clipboard copy can be used almost anywhere in a UI. It is commonly used in forms and definition lists.
Clipboard copy in a form
![Example of clipboard copy in a form](/images/form.33d09fb67ad11403.png)
Clipboard copy in a description list
![Example of clipboard copy in a description list](/images/description-list.1bf2130c51fdbe49.png)
Inline compact clipboard copy for URLs
![Example of an inline compact clipboard copy next to a URL](/images/clipboard-copy-url.48c7dcf54273a4d9.png)
Inline compact clipboard copy in context
![Example of an inline compact clipboard copy in context](/images/inline-in-context.a2b86b06900b6257.png)