Copy Button
A clipboard copy trigger. Icon swaps to a checkmark on success and resets after a configurable timeout. Supports ghost, outline, and secondary variants with an optional text label.
Default (icon only)
Click to copy text to the clipboard. Icon swaps to a checkmark for 2 seconds.
With label
Pass label to show text alongside the icon. The label updates to "Copied!" on success.
Variants
Sizes
In a code block
The most common usage: paired with a mono code snippet.