Copy Button

Pro

Copy to clipboard with an icon morph, particle burst, and live announcement.

Secret key

sk_live_9f2a7c41d8e04b6fa1c3e5d7b9082f6a

Install

$ bunx shadcn@latest add @ui-shrushank/copy-button
the labelled variant

Real `navigator.clipboard.writeText` with an `execCommand` fallback. On success the icon spring-morphs copy to check, a ring pulses out with a small particle burst, and an `aria-live` region announces it; the state resets after `timeout`. Icon-only or labelled via the `variant` prop.

This component installs from the private registry, which opens with Pro. The command and the one-time setup are shown here once your licence key is in this browser.

6 sections, and every other premium component

The preview above is the real Copy Button, running. One purchase opens the sections above on this page and on every other component in the library.