--- title: ClipboardItem description: Enables copying text to the user’s clipboard. Use alongside Button or Link components to let users easily copy content. `` doesn’t render visually. api_version: 2025-10 api_name: checkout-ui-extensions source_url: html: https://shopify.dev/docs/api/checkout-ui-extensions/latest/polaris-web-components/utilities/clipboarditem md: https://shopify.dev/docs/api/checkout-ui-extensions/latest/polaris-web-components/utilities/clipboarditem.md --- # Clipboard​Item Enables copying text to the user’s clipboard. Use alongside Button or Link components to let users easily copy content. `` doesn’t render visually. ## Properties * id string A unique identifier for the element. * text string Default: '' Plain text to be written to the clipboard. ## Events Learn more about [registering events](https://shopify.dev/docs/api/checkout-ui-extensions/2025-10/using-polaris-components#event-handling). * copy CallbackEventListener\ Callback run when the copy to clipboard succeeds. * copyerror CallbackEventListener\ Callback run when the copy to clipboard fails. ### CallbackEventListener ```ts (EventListener & { (event: CallbackEvent & TData): void; }) | null ``` ### CallbackEvent ```ts TEvent & { currentTarget: HTMLElementTagNameMap[TTagName]; } ``` ### Examples * #### Code ##### Default ```html Copy discount code ```