Copy Button

Displays an icon button used to copy a value into the clipboard.

This component inherits the props from the Icon Button, but doesn’t accept children. View source

Copy Button provides a standardised interaction for copying a value. You’ll need to use your own preferred method of copying text into the clipboard using an onClick handler.

Disable or hide the Copy Button when there is nothing to copy.

Use Copy Button within a Text Field slot when user might need to copy a unique value.