Copy Button
stableCopies text to the clipboard with success feedback.
Basic usage
npx structyl initExamples
In a code block
Pair CopyButton with a styled code block — the typical documentation pattern.
pnpm add @structyl/styled
Copy command and tokens
CopyButton can be used beside code, API keys and generated theme values.
pnpm add @structyl/styledFeatures
- Animated check feedback.
- Configurable reset delay.
Installation
bash
pnpm dlx structyl add copy-buttonAPI Reference
Copy Button API reference
Full props, types, defaults.