Copy Button
A copy button component with a variety of styles and animations.
Made by imskyleenInstallation
Usage
API Reference
CopyButton
Animate UI API Reference - Button PrimitiveProp | Type | Default |
---|---|---|
content | string | - |
copied? | boolean | - |
onCopiedChange? | (copied: boolean, content?: string) => void | - |
delay? | number | 3000 |
variant? | "default" | "accent" | "destructive" | "outline" | "secondary" | "ghost" | "link" | default |
size? | "default" | "sm" | "lg" | "icon" | default |
hoverScale? | number | 1.05 |
tapScale? | number | 0.95 |
...props? | HTMLMotionProps<"button"> | - |
Credits
- Credit to shadcn/ui for style inspiration.