A small button that copies text and announces copied state visually.
CopyButton defines how EnterUI handles a small button that copies text and announces copied state visually, including default structure, accessible states, and token-driven styling.
Copied state resets after a short delay.
<CopyButton text="pnpm install @froggdesign/enter-ui-react @froggdesign/theme" />import { CopyButton } from "@froggdesign/enter-ui-react";Use short labels for dense toolbars.
CopyButton updates its aria label between the default and copied state. Clipboard access happens on user click.
text is required.label, copiedLabel, and resetDelay customize behavior.Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.