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' | 'secondary' | 'ghost'defaultButton style variant
size?'default' | 'sm' | 'md' | 'lg'defaultButton size
delay?number3000Reset delay after copy (ms)
content?string-Text to copy
Last updated on