Skip to content

Clipboard

Copy text to the clipboard.

Installation

Anatomy

Usage

Controlled

Examples

Icon Only

Different Icons

Value Text

Use ClipboardValue component to display the value as text instead of an input field.

https://x.com/vinihvc

Custom Timeout

Use the timeout prop on Clipboard to customize how long the copied state is shown.

API Reference

Clipboard

Root wrapper. Manages copy state and value.

ClipboardTrigger

Triggers copy to clipboard on click.

ClipboardInput

Input showing the value to copy. Often hidden or read-only.

ClipboardIndicator

Icon that changes based on copy state.

ClipboardValue

Text display of the value. Use when input is not needed.


For a complete list of props, see the Ark UI documentation.