korvali copy docs

Plug-and-play one-tap text clipboard copier for beginners.
v2026.10.24
1. Include Script Tag
<script src="https://beginner.korvali.net/t/copy.js"></script>
2. Attributes Reference
Attribute Status Description & Behavior
copy-data Required The exact string text to copy into user's clipboard (e.g., copy-data="Testing").
Changes button text temporarily to Copied! upon click.
Copy Engine Capabilities:
• Clipboard API & Fallback: Native Clipboard API support with automatic legacy fallback.
• Visual Feedback: Automatically updates button text to "" and resets after 1.5s.
• Combos Allowed: Can be combined with toast-data for double feedback!
3. Full HTML Snippet Example
<!-- 1. Include Korvali Copy Script -->
<script src="https://beginner.korvali.net/t/copy.js"></script>

<!-- 2. Attach copy-data attribute -->
<button copy-data="Testing">
  Copy Testing Text
</button>
Back to korvali beginner