Icon button that copies text to the clipboard. Cross-fades to a check icon when copied with a tippy tooltip.
Pass the string to copy via the text prop.
Import the parts you need from the component's folder.
import { ButtonCopy } from "@/components/ui/button-copy";
Common pattern: read-only input plus copy button for shareable URLs.
text
string