Copy Button

A button that copies text to the clipboard.

npx shadcn@latest add https://shuip.plvo.dev/r/copy-button.json

Preview

Loading...

Examples

Default

Loading...

With Custom Icons

Loading...

Props

NameTypeDescription
valuestringThe text to copy to the clipboard.
copiedIconReact.ReactNodeThe icon to display when the text is copied.
notCopiedIconReact.ReactNodeThe icon to display when the text is not copied.
...propsReact.ComponentProps<"button">The props to pass to the button.