Copy Button
A button with a copy to clipboard animation.
Made by imskyleen
Installation
Usage
Props
Prop | Type | Default |
---|---|---|
onCopy? | (content: string) => void | - |
variant? | 'default' | 'muted' | 'outline' | 'secondary' | 'ghost' | default |
size? | 'default' | 'sm' | 'md' | 'lg' | default |
delay? | number | 3000 |
content? | string | - |
Credits
- Credits to Shadcn UI for the button style.