# CopyButton Read the complete [LICENSE](https://snowui.dev/LICENSE) for the installed version before use. Copy text or code to the clipboard and briefly confirm success, useful for links, identifiers, and install commands. We are building SnowUI components into interfaces people can use directly in AI conversations. Conversational UI is still in development; this page demonstrates website usage. Supported chat platforms and component versions will be announced after verification. Generating and using SnowUI interfaces inside AI conversations is completely free. It is not a project, uses no project or developer-seat quota, and requires no SnowUI registration, activation, or paid proof. Package: `@snowui-design-system/components`. Import: `import { CopyButton } from '@snowui-design-system/components';`. Source fingerprint: `f51b095c506711319a05068a7d6959073523a7dadd140a4615f636b7faf4414e`. ## Usage choices Use CopyButton to copy content and show brief feedback. Supply text or getText for the value, and use writeText when an application already has its own clipboard operation. The component manages the success state. - Use text for a fixed value or getText for a value resolved at click time. writeText replaces the clipboard write operation. - Handle business feedback with onCopy and onCopyError. Set showText=false for an icon-only button; feedbackDuration controls how long the result remains visible. ## Read as needed - [API](https://snowui.dev/llms/en/components/copy-button/api.md): Public Props and defaults - [Types and states](https://snowui.dev/llms/en/components/copy-button/types.md): Public type declarations and binding rules - [Full reference](https://snowui.dev/llms/en/components/copy-button/reference.md): Composition and interaction boundaries - [Styles](https://snowui.dev/llms/en/components/copy-button/styles.md): Registered public overrides - [Examples](https://snowui.dev/llms/en/components/copy-button/examples.md): Code and preview links - [Image index](https://snowui.dev/llms/components/copy-button/images.json): Use only if appearance remains uncertain - [Changelog](https://snowui.dev/llms/en/components/copy-button/changelog.md): Version history reviewed in English [Design guide](https://snowui.dev/llms/en/design-system.md) · [Styling guide](https://snowui.dev/llms/en/styling.md)