Copy Button
A button that copies text to the clipboard.
Installation
npx shadcn@latest add https://shuip.xyz/r/copy-button.json
Preview
Examples
Default
With Custom Icons
Props
Name | Type | Description |
---|---|---|
value | string | The text to copy to the clipboard. |
copiedIcon | React.ReactNode | The icon to display when the text is copied. |
notCopiedIcon | React.ReactNode | The icon to display when the text is not copied. |
...props | React.ComponentProps<"button"> | The props to pass to the button. |