Skip to Content
🎉Introducing Pumki UI

Copy Button

A button that copies text to the clipboard with an accompanying animation.

Pumki UIPumki UI

Installation

Usage


1import { CopyButton } from '@/components/pumki-ui/buttons/copy';

1<CopyButton content="Hello Pumki!" />

Props

PropTypeDefaultDescription
onCopy?(content: string) => void-Callback fired after copy
variant?‘default''muted''outline'
size?‘default''sm''md'
delay?number3000Reset delay after copy (ms)
content?string-Text to copy
Last updated on