@quantabit/copy-sdk
v1.0.3
Published
Universal copy-to-clipboard components: CopyButton, CopyText, CopyAddress, CopyLink
Maintainers
Readme
@quantabit/copy-sdk
Universal copy-to-clipboard components for React applications
Features
- CopyButton — Icon or text button with success animation
- CopyText — Display text with inline copy button (great for invite codes, API keys)
- CopyLink — Clickable link with copy shortcut
- CopyAddress — Blockchain address display with truncation and copy
- useCopy — Hook with auto-reset state and error handling
- Zero Dependencies — Clipboard API + execCommand fallback
Quick Start
import { CopyText, CopyAddress } from '@quantabit/copy-sdk';
// Invite code
<CopyText text="QBIT-2024-HELLO" label="Invite Code" monospace />
// Wallet address
<CopyAddress address="0x742d35Cc6634C0532925a3b844Bc9e7595f2bD38" />
// Custom button
<CopyButton text="Hello World" variant="button">Copy Text</CopyButton>License
MIT © QuantaBit Team
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
