CopyButton
actionsClick-to-copy button with clipboard API integration and visual success feedback. Token-driven colors, sizing, and border styles.
Import
typescript
import { CopyButton } from "packages/ui/src";Props
CopyButtonProps
| Prop | Type | Required |
|---|---|---|
text | string | Yes |
label | string | No |
successLabel | string | No |
Examples
CopyButton
Click-to-copy button with clipboard API, success feedback, and auto-reset.
Default
npm install @cms/uiCustom Labels
https://cms.chem.devToken Value
#a78bfaCode Snippet
import { CopyButton } from "@cms/ui";
<CopyButton text="Hello, World!" />