Copy Button
A button that copies text to the clipboard with an accompanying animation.
Installation
Usage
1import { CopyButton } from '@/components/pumki-ui/buttons/copy';1<CopyButton content="Hello Pumki!" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
onCopy? | (content: string) => void | - | Callback fired after copy |
variant? | 'default' | 'muted' | 'outline' | 'secondary' | 'ghost' | default | Button style variant |
size? | 'default' | 'sm' | 'md' | 'lg' | default | Button size |
delay? | number | 3000 | Reset delay after copy (ms) |
content? | string | - | Text to copy |
Last updated on